Baud rate with CW V6.2

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Baud rate with CW V6.2

1,769件の閲覧回数
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
ラベル(1)
タグ(1)
0 件の賞賛
3 返答(返信)

567件の閲覧回数
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.

567件の閲覧回数
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 件の賞賛

567件の閲覧回数
peg
Senior Contributor IV
Hi,

Everything you have shown here looks good.
How about all of the code.
0 件の賞賛