Hi !
How to read out this low - high sample:
L- L- L- H- H- H- H- L- L- H- H- L- L- H- H
Maybe with some interrupt routine ?
The chip that am using is 16F877.
Alan
Alanis
Joined: 28 Sep 2007 Posts: 13
Posted: Thu Oct 04, 2007 4:58 am
Hi guys !
Do you have and idea how to make this ?
In general, i dont know how to define that L-H read out.
e.g. how to read the levels if i get 3 time L L L or H H H ...
Alan
p.s. incoming data is passed at speed of 9600 B/s.
Guest
Posted: Thu Oct 04, 2007 5:21 am
Setup a timer with the correct speed and enable interupt.
Att each interrupt read the value from the actual pin.
Start the timer in the middle of the first bit.
To do this you must have a reference, i.e. start bit or something like that to know when to start.
Alanis
Joined: 28 Sep 2007 Posts: 13
Posted: Fri Oct 05, 2007 3:04 am
Setup a timer with the correct speed and enable interupt.
-If my internal ring oscillator is 8 MHZ, what is the correct timer setup ?
Start the timer in the middle of the first bit.
- I dont understand this part....
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum