please see this post, Brandon has the same statement as yours link >> http://www.picbasic.co.uk/forum/show...7826#post47826
please see this post, Brandon has the same statement as yours link >> http://www.picbasic.co.uk/forum/show...7826#post47826
________________
KV
This should send out hello each 0.5 sec 9600 baud even parity instead i get 4 "Ξ" Simbols on hyper terminal, i have checked all the regesters and it seems to be ok, any body got any Suggestions??
DEFINE OSC 20 ' Define crystal as 20Mhz
DEFINE HSER_BAUD 9600 ; 9600 Baud
DEFINE HSER_RCSTA 90h ' Enable serial port & continuous receive
DEFINE HSER_TXSTA 64h ' Enable transmit, BRGH = 1
DEFINE HSER_BITS 9
DEFINE HSER_EVEN 1
DEFINE HSER_CLROERR 1 ; Clear overflow automatically
TRISA = %00011111 'set PORTA 0-5 as inputs
TRISC = %10001111 'Set PORTC for serial coms and pins 0 - 3 as inputs
TRISB = %00000000 'Sert PORTb as outputs and for use with the ICD2
INTCON = 0 ;Disable interrupts
loop:
HSEROUT ["Hallo"]
PAUSE 500
goto loop
It works here.. but i don't have the F913.. just the 917, shouldn't be the cause
Or your Max232 circuit is wrong or you didn't set HS mode before programming your PIC.
Steve
It's not a bug, it's a random feature.
There's no problem, only learning opportunities.
This is not the smartest of questions but i am using mplab 8 and a ICD2 and can not find were to set the HS mode, if i understand your reply correct it is a programmer option.
You have 2 choice, my favorite is to set the configuration bits in the code see the following
http://www.picbasic.co.uk/forum/showthread.php?t=543
or in MPLAB, click on Configure menu, then select Configuration bitCode:@ __CONFIG _HS_OSC ; minimal configuration fuse setting
Steve
It's not a bug, it's a random feature.
There's no problem, only learning opportunities.
Not with HyperTerminal!
Code:DEFINE HSER_BAUD 9600 ; 9600 Baud DEFINE HSER_RCSTA 90h ' Enable serial port & continuous receive DEFINE HSER_TXSTA 64h ' Enable transmit, BRGH = 1 DEFINE HSER_BITS 9 DEFINE HSER_EVEN 1 DEFINE HSER_CLROERR 1 ; Clear overflow automatically
DT
I'm i allowed to not understand???? Hypercrap worked here with that setting... but... erm, i admit i've never ever dare to open the datasheet to read TXSTA settings
Feel lazy and tired today...
Steve
It's not a bug, it's a random feature.
There's no problem, only learning opportunities.
Bookmarks