Baud rate with CW V6.2

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Baud rate with CW V6.2

1,754 Views
Softstart
Contributor I
Hi all,
 
Recently I've made a start with the MC9S08QG8 16-pins controller. I wrote code to control a few leds on serial interrupts. How can I check the baudrate of the target device with the true-time simulator/debugger of CodeWarrior IDE V6.2?
 Any hints or help I will appreciate.
 
Thanks,
Max
Labels (1)
Tags (1)
0 Kudos
3 Replies

552 Views
peg
Senior Contributor IV
Hi and welcome to the forum, Softstart.

You can't really check this with the simulator.
What is your problem, do you need to know what the baudrate is roughly or do you suspect that you have a small error causing issues.

552 Views
Softstart
Contributor I
Hi Peg,
 
I configured the MC9S08QG8 for the internal clock source of 16 MHz, so  the bus clock is 8 MHz right?
The SCI is configured to receive serial data only with a baud rate of 9600. 
There is no response of the leds on a serial interrupt with hyperterminal?
Here are some code snippets:
 
SCIBDH = 0x00;
SCIBDL = 0x34;
 
SCIC1 = 0x00;           
SCIC2 = 0x34;            
SCIC3 = 0x00;         
 
UCHAR check = 0x00;
 
 while(_SCIS1.Bits.RDRF)
 {
                        /* Wait if RDRF = 1 , then read data */  
 }
 check = SCIS1;      /* Read status register with RDRF=1 to clear RDRF */
 
Have I something forgotten?
 
Max 
0 Kudos

552 Views
peg
Senior Contributor IV
Hi,

Everything you have shown here looks good.
How about all of the code.
0 Kudos