How should I write the code then?
I would be grateful if you could paste some code or just help me with some hints how to do...
Thx mate.
How should I write the code then?
I would be grateful if you could paste some code or just help me with some hints how to do...
Thx mate.
Using your original example, it might look like this ...HTH,Code:DEFINE OSC 4 DEFINE HSER_RCSTA 90h 'Hser receive status init DEFINE HSER_TXSTA 20h 'Hser transmit status init DEFINE HSER_BAUD 2400 'Hser baud rate INTCON.6 = 1 ' Enable Peripheral interrupts PIE1.5 = 1 ' Enable USART receive ints (RCIE) on interrupt goto myint loop: pause 1 goto loop disable myint: Hserin [wait("IB")] resume enable
Darrel
Last edited by Darrel Taylor; - 11th October 2005 at 23:13.
Should i connect B0/INT to B1/RX? or does this detect interrupt on the RX port?
For a 16F628, the USART pins (RX and TX) are 7 and 8. Same as RB1 and RB2.
<br>
DT
Oh it works! Thanx _ALOT_ Darrel Taylor.
This will make the program faster and a bit easier.
That was all for today, time for bed. Good night...
Bookmarks