I'm a new user of Flowcode.
PIC use : 16F877A. XTAL Frequency : 4MHz prescalaire to 16
I need to capture data bus on RB4 composed by word of 32 bits of 12.5Khz .Each Word are tranmit every 300ms.
But as i don't have any synchronisation or bit start and bit stop ,I use a second bus connected on RB0. 'Clock Word' (32bits of 12.5Khz) :
....................RBO (clock): ____--_--_--_--_--_--_____--_--_--_--_--_--_
Signal to capture : RB4 : _______--___--_--_--________--___--_--_--___
LCD Display : 0 1 0 1 1 1
I use timer0 ,set timer to 250 (255-250=5 , 5*16us = 80us => 12.5Khz) and after 32 loops ,i want to display the status of bus on LCD.
at each interruption i catch the state of RB4.
But it doesn't work ,someone can help me please ??
Here is my flowcode: