PDA

View Full Version : i need more explain



lo0oly
- 11th April 2009, 20:46
hi,,,

i read this definition but i need Know



@ device INTRC_OSC_NOCLKOUT
CMCON = 7 ' PortA = digital I/O
VRCON = 0 ' A/D Voltage reference disabled


' Set receive register to receiver enabled
DEFINE HSER_RCSTA 90h
' Set baud rate
DEFINE HSER_BAUD 2400


what is that mean(HSER)& (baud)??

and

some instruct assign to number like 90h & 2400??? what is the number mean?
is the number constant??if not what the other options??????



and thanx

Melanie
- 11th April 2009, 21:24
It's all in the PICBasic Manual that came with your software.

lo0oly
- 11th April 2009, 21:28
i searching with no result...
if u have some explain plzz help

Melanie
- 11th April 2009, 22:00
Let's never say that we're not helpfull...



@ device INTRC_OSC_NOCLKOUT


http://www.picbasic.co.uk/forum/showthread.php?t=543



CMCON = 7 ' PortA = digital I/O
VRCON = 0 ' A/D Voltage reference disabled


Details on CMCON and VRCON are found in the Datsheet for your chosen PIC (downloadable from the Microchip website).



' Set receive register to receiver enabled
DEFINE HSER_RCSTA 90h
' Set baud rate
DEFINE HSER_BAUD 2400


I'm sorry you can't find this in your PBP Manual... this can be found in TWO places with all the information you need... the first is with the HSERIN Command (Section 5.30), and if those pages are missing from your manual, you'll also find it Appendix B at the back.

lo0oly
- 11th April 2009, 22:56
:)

i will try

but the problem i'm computer science student i dont understand the data sheet

but i will try

and may be back here if i cant..


thanx Melanie

lo0oly
- 12th April 2009, 16:00
I'M BACK :o

UMMM


DEFINE HSER_BAUD 2400


IN THIS COMMAND I READ IN DATA SHEET & BOOK

IT CAN BE SET (300, 1200,2400 ,9600)

SO,,WHICH ON MUST BE CHOSEN???????

Melanie
- 12th April 2009, 16:32
You have just asked this question:

"I am driving down the road in my car - How fast must I drive?"

Answer:

You drive as fast as appropriate for the road conditions, for my level of skill and competence, for the safety of others and for that proscribed by law.

Chris Barron
- 13th April 2009, 13:55
I'M BACK :o

UMMM



IN THIS COMMAND I READ IN DATA SHEET & BOOK

IT CAN BE SET (300, 1200,2400 ,9600)

SO,,WHICH ON MUST BE CHOSEN???????


SER_BAUD is the baud rate of the serial port, or in other words data transmission speed.

Set the speed to be the same as the speed of the device you are communicating with. Both serial devices must be operating at the same speed for there to be complete and correct data transmission.

IF you are not communicating withnother serial device, turn off the serial ports using the control bits in the special registers.

Further comprehensive information can be found in the 'Help' option on the menu bar in Codestudio