PDA

View Full Version : problem in serin2



FADI984
- 3rd December 2012, 20:45
Please i try to receive data from fsk ic ht9031 by 16f628a using serin2 command and display results on 7 segment ...my proplem is i dont receive any data exept when i use this command
serin2 porta.0,813,300,loop[wait($02,$0a),idstring\10]
Pecuse most nombers in my country are 10digits ...but another numbers are 9 digits and the main problem when i use
serin2 porta.0,813,300,loop[wait($80),idstreing\length]
I recieve rong data

mister_e
- 8th December 2012, 10:40
Your PIC have a built-in USART... use it, it has load of of advantage.

you haven't posted other lines of code, so it could be anything... often really simple like adding

CMCON = 7

at the top of your code... it already happen once here... maybe twice...

FADI984
- 11th December 2012, 09:52
thank you it is solved ......