funnynypd said:You don't have to poll, you can use interrupt on pin change if available (most likely RB4-RB7 on Port B), and interrupt on timer.
;******************************************************************
;* *
;* Filename: 12F683 Half-Duplex 9600 Demo.asm *
;* Author: Mike McLaren, K8LH (k8lh_at_arrl.net) *
;* Date: 02-Jun-05 (last revision 02-Dec-05) *
;* *
;* Half Duplex Bit-Banged 9600 Baud Serial I/O Demo *
;* (with 16-byte circular receive character buffer) *
;* *
;* ·Uses 12F683 INTOSC running at 8-MHz *
;* ·Bit rate error 0.16% plus or minus 1.0% for INTOSC *
;* ·Bit-banged 9600 baud serial I/O *
;* ·Half Duplex (should not TX and RX simultaneously) *
;* ·TMR2 interrupts at 104-usec intervals (every 208 *
;* instruction cycles) and IOC (interrupt on change) *
;* for RX start bit leading edge detection on RXPIN *
;* ·Circular 16-byte RX character buffer *
;* ·Inverted TX and RX signals (MAX232A or similar *
;* inverting RS-232 interface required) *
;* ·Relatively small - the ISR and the support routines *
;* Init232, Put232, and Get232 use 102 words of code *
;* space at locations 0004 through 0069 *
;* ·Worst case 23% ISR 'overhead' (24-usecs) when a *
;* complete RX character is added to the circular *
;* buffer once every 1.04-msecs while receiving *
;* *
;* MPLab: 7.21 (tabs=8) *
;* MPAsm: 4.02 *
;* *
;******************************************************************
drbizzarow said:funnynypd said:You don't have to poll, you can use interrupt on pin change if available (most likely RB4-RB7 on Port B), and interrupt on timer.
will you please elaborate this more ?
Those are not high speed at all. So the SW UART (interrupts) load to CPU won't be high.baudrate for gsm module is 9600 and for gps module 4800.
What's the clock speed you are running? You may need to find out the best clock speed for your specific applicaion.:|drbizzarow said:ok i try .... int method
some time before i was working on pi18f452 in 2400 BR i have to handel some string buffer through serial port .... and i counter so many prob handilling to break and start cummnication ,,,i wasy using PCW Xcompiler obviouly language was C.
thats why im lil bit shake about doing this again.
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?