Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Reading 16 bit data using USART

Status
Not open for further replies.

alan007

Newbie level 4
Joined
Feb 11, 2013
Messages
5
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,313
Hello..
I'am using a module that outputs 16 bits of continous data that i want to read using my PIC...
Functions to read and write data to USART module of PIC reads/writes one byte(i.e, 8 bits) of data at a time...
Can i read all these 16 bits in one go?.(I dont want any my data bits to be counted as stop bits..)
I'am using MikroC compiler....

Thanks in advance..
 

Using own bit-banging SW Usart routine it's possible and not so difficult when you know the format of the incoming bit-stream.
 

hello


if your dataflow is not an usual serial link, you need to have a synchro bit somewhere
to recognise the 1rst bit and the last bit of your 16 bits data word.
without synchro is not possible.
what is your module with deliver this 16 bits serial data ?
 

The module is..
**broken link removed**
 

hello

in the datasheet , explanation is Serial data , so the ID tag of RFID can be received by using UART 9600,8,N,1
we can suppose 8 bits, no parity, one stop ...
and you will receive 2 bytes (minimum)
i don't know if it is raw data or a via a special protocol used by the emitter part ?

MSB + LSB -> 1 Word 16 bits
or maybe LSB + MSB ... motorola fashion or Intel fashion
If you now the ID reference on the Emitter , you will able to recognise the 2 bytes .

you better have to use interrupt traitment for receiving data, if data flow is continuous.
(no time gap beetween invoice by emitter)
 
The data flow is continous..Can u please tell me more about interrupts i have to use,as I'am not so familiarwith interrupts..
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top