inservi
Joined: 13 May 2007 Posts: 128
|
|
Posted: Tue Oct 02, 2007 4:03 am |
|
|
Hello,
Here is the essential 'header' for timing. You need to add other fuses as you need. Check the rs232 parameters as xmit and rcv pin.
Code: |
#include "16F877.h"
#device *=16 // if you want
#FUSES XT //Crystal osc <= 4mhz
.. other #fuses
#use delay(clock=4000000)
#use rs232(baud=1000,parity=N,xmit=PIN_C6,rcv=PIN_C7,bits=8)
|
In fact, is simple as giving the right #use delay() and baud=1000.
Best regards,
dro. _________________ in médio virtus |
|