Hi Guys & Girls!
my serial data transfer between two pics 16F628A works for starters. BUT: in my program theres at high engine speeds only 0.4 ms or less to send the data from one pic to another.
The action my receiving PIC makes is triggered by an external interrupt that means after that theres hardly time to get the data. On the other hand it doesn´t matter if it misses the data for a few cycles because at high engine speeds the data update could wait . I think it is sufficient to transmit that data every 0.1 sec.
Yes: baud rate 9600, 4 Mhz crystal, data: one word. Input Frequency 3 Hz - 600 Hz
Does this work?
on Interrupt goto ISR
main:
serin2 blah blah
isr:
pulsout 7, 50, 1
something like that
I will show the program when i´m back home
AH: one BIG Problem too:
when using a 2-channel oscilloscope it shows a Delay between input signal and output signal
of about 0.5 ms more than expected. this makes the whole action too slow!!!
Maximum accepted delay between input trigger and output pulseout could be 0.1 ms.
is the only way to handle those timecritical events by assembler? please say no....
Mugel
Bookmarks