Software

From: Joerg Hansmann (jhansmann_at_g...)
Date: 2000-10-21 15:39:19


Hi Rob and everyone,

<yaniv_vi_at_yahoo.com> wrote:
>software :
>rob sacks is working has finished a pre-beta version of his software .
>it does mind mirror and includes phase coherence.
>it lookes very nice.

I have written the firmware for the Atmel-Processor (AT90S4433)
in the RS232EEG Prototype board and tested it with a terminal program.
For more testing however I need some sort of visualization.
(best oszilloscope-like AD-Value(y-axis) over time(x-axis)).
Protocol/transmission errors should be recorded for debugging purposes.

Could you implement the following communication protocol ?

The Atmel-processor transmits 200 times per second the following data block
to the PC:
$a5 :1. sync byte
$5a :2. sync byte
$01 :version byte
ch1_low_byte
ch1_high_byte
ch2_low_byte
ch2_high_byte
ch3_low_byte
ch3_high_byte
ch4_low_byte
ch4_high_byte
ch5_low_byte
ch5_high_byte
ch6_low_byte
ch6_high byte
switches: 1 byte digital inputs (PD2..PD5) in the lower 4 bits.

all together 16 byte.

>From the AD-channel-data only the lower 10 bit are used as unsigned
integer.
The remaining 6 high bits are 0.

RS232 transmission parameters are:
1 startbit, 8 data bits, 1 stopbit, no parity, 57600 baud

At the moment communication direction is only from Atmel-processor to PC.
The hardware however supports full duplex communication. This feature
will be used in later firmware releases to support the PWM-output and
LED-Goggles.

best regards,

Joerg Hansmann



This archive was generated by hypermail 2.1.4 : 2002-07-27 12:28:27 BST