Accra - Self Contained Counter interface module.

Project Status

Current hardware version, 0.0.1
Current firmware version: 0.0.1

Download

Got to http://www.grodansparadis.com for up to date info :!:

Firmware

Schematics

  • JPEG for schema: Will be published soon.
  • JPEG for Board: Will be published soon.

About

The Accra counter module is an is an open hardware and software six input counter module. Two of them are high frequency counters which can be used for frequency measurements. Its designed for the VSCP (Very Simple Control Protocol) for use over CAN (Controller Area Network).

The module is built around a Microchip PIC 18F2580 and the code is written in C using the Microchip MCC-18 compiler.

The Accra counter module can be powered with 9-16V DC and draws about 0.15W.

Documentation & Data

Power

The Accra counter module can be powered with 9-16V DC and draws about 0.15W.

Enclosure

Material for the box: Polycarbonate (UL 94-V1)

Colour

Grey

Enclosure class

IP20

Dimensions for module

B17,7×H89×D59 mm

The Accra counter module is also available in the form of a bare PCB for home builders.

The module, the PCB and components for it can be bought at http:// www.eurosource.se

Installing

The module have screw connections on two sides. One side is for CAN and power (marked “CAN + Power” ) and the other side is for the sensor (marked “sensor”).

Registers

Reserved Registers
Register 0(0x00) - Zone.
Register 1(0x01) - SubZone.
Counter status registers
Register 2(0x02) - Status register for counter 1. Read/write
Register 3(0x03) - Status register for counter 2. Read/write
Register 4(0x04) - Status register for counter 3. Read/write
Register 5(0x05) - Status register for counter 4. Read/write
Register 6(0x06) - Status register for counter 5. Read/write
Register 7(0x07) - Status register for counter 6. Read/write

bit 0 - Set to one to activate counter. 
bit 1 - Set to one for persistence.
bit 2 -
bit 3 -
bit 4 -
bit 5 -
bit 6 - 
bit 7 - Set to one to reset counter.
Counter registers
Register 8(0x08) - Counter 0 MSB. Read/Write
Register 9(0x09) - Counter 0. Read/Write
Register 10(0x0A) - Counter 0. Read/Write
Register 11(0x0B) - Counter 0. LSB. Read/Write
Register 12(0x0C) - Counter 1 MSB. Read/Write
Register 13(0x0D) - Counter 1. Read/Write
Register 14(0x0E) - Counter 1. Read/Write
Register 15(0x0F) - Counter 1. LSB. Read/Write
Register 16(0x10) - Counter 2 MSB. Read/Write
Register 17(0x11) - Counter 2. Read/Write
Register 18(0x12) - Counter 2. Read/Write
Register 19(0x13) - Counter 2. LSB. Read/Write
Register 20(0x14) - Counter 3 MSB. Read/Write
Register 21(0x15) - Counter 3. Read/Write
Register 22(0x16) - Counter 3. Read/Write
Register 23(0x17) - Counter 3. LSB. Read/Write
Register 24(0x18) - Counter 4 MSB. Read/Write
Register 25(0x19) - Counter 4. Read/Write
Register 26(0x20) - Counter 4. Read/Write
Register 27(0x21) - Counter 4. LSB. Read/Write
Register 28(0x22) - Counter 5 MSB. Read/Write
Register 29(0x23) - Counter 5. Read/Write
Register 30(0x24) - Counter 5. Read/Write
Register 31(0x25) - Counter 5. LSB. Read/Write
Register 32(0x26) - Counter 1 Frequency MSB. Read Only
Register 33(0x27) - Counter 1 Frequency. Read Only
Register 34(0x28) - Counter 1 Frequency. Read Only
Register 35(0x29) - Counter 1 Frequency. LSB. Read Only
Register 36(0x2A) - Counter 2 Frequency MSB. Read Only
Register 37(0x2B) - Counter 2 Frequency. Read Only
Register 38(0x2C) - Counter 2 Frequency. Read Only
Register 39(0x2D) - Counter 2 Frequency. LSB. Read Only

Decision Matrix

The module does not have a decision matrix.

Available Actions

None.

Alarm register

Bit 0 - Overflow occurred on counter 1 
Bit 1 - Overflow occurred on counter 2
Bit 2 - Overflow occurred on counter 3
Bit 3 - Overflow occurred on counter 4
Bit 4 - Overflow occurred on counter 5
Bit 5 - Overflow occurred on counter 6
Bit 6 - 
Bit 7 - 

Events

Alarm

Alarm is sent when counter overflows.

Class: 0x001 
Type: 0x02

Package:

Byte 0: index.
Byte 1: Zone
Byte 2: Subzone
  • Index is 0 - Counter overflow counter 1
  • Index is 1 - Counter overflow counter 2
  • Index is 2 - Counter overflow counter 3
  • Index is 3 - Counter overflow counter 4
  • Index is 4 - Counter overflow counter 5
  • Index is 5 - Counter overflow counter 6
modules/counter_one.txt · Last modified: 2011/12/01 14:25 by admin
Public Domain
www.chimeric.de Valid CSS Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! Recent changes RSS feed Valid XHTML 1.0