using hyperterminal with QE128 demoboard

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

using hyperterminal with QE128 demoboard

4,804件の閲覧回数
shumpi55
Contributor I
how do we send data from serial port of MC9SQE128 micro-controller to a hyperterminal? I  tried connecting to the hyperterminal but nothing appears on the screen. I checked my program too.




ラベル(1)
タグ(1)
0 件の賞賛
返信
11 返答(返信)

1,910件の閲覧回数
fabio
Contributor IV
The jumpers J6, J7 and J8 are configured correctly ?

Best regards,
0 件の賞賛
返信

1,910件の閲覧回数
shumpi55
Contributor I
jumper J8 is SCI Transciever enable COM_EN.(PTC5)
Do I have to enable PTC5 in the program?


0 件の賞賛
返信

1,910件の閲覧回数
fabio
Contributor IV
Hello Shumpi55,

Yes, in order to use the built-in level shifter, you need to place jumper J8 in COM_EN position, configure PTC5 as an output and force it to 1:

PTCDD_PTCDD5 = 1;  // PTC5 as an output
PTCD_PTCD5 = 1; // PTC5 = high

This sequence is not present on example 11.10 in my book (because I tested it using the built-in BDM serial channel). I'll update the errata file with a tip about that and add the proper code sequence.

Best regards,
0 件の賞賛
返信

1,910件の閲覧回数
shumpi55
Contributor I
I tried running the program by enabling PTC5 but i did not get anything on the hyperterminal.:smileysad:
I used the following program:
void main(void){
SOPT1=0x23;
SCGC1=0x01;
SCI1BDL=0x1A;
SCI1BDH=0x00;
SCI1C2=0x0C;
PTCDD_PTCDD5=1;
PTCD_PTCD5=1;
SCI1D='H';
while(1);
}
But it did not work and I did not get 'H' on hyper terminal. The hyperterminal config was
9600bps baud rate
8 bit mode
No parity checked
1 stop bit
No flow control



0 件の賞賛
返信

1,910件の閲覧回数
fabio
Contributor IV

Hi Shumpi55,

Maybe you could try example 11.10 of my book. It is a circular buffer using the SCI on the MC9S08QE128. The whole project file can be downloaded at:

www.sctec.com.br/hcs08

Best regards,

0 件の賞賛
返信

1,910件の閲覧回数
J2MEJediMaster
Specialist I
Are you getting anything to appear at all in Hyperterminal? If not, you might need a null modem cable to connect the two device's serial ports.

---Tom
0 件の賞賛
返信

1,910件の閲覧回数
shumpi55
Contributor I
this is my problem. Nothing appears on the hyperterminal. I connected the demo board and pc using RS232 cable. I used the hyper terminal present in XP.
0 件の賞賛
返信

1,910件の閲覧回数
J2MEJediMaster
Specialist I
Try checking this forum thread for a similar problem. You may need to configure your board as a DTE, or use a null modem cable.

---Tom

0 件の賞賛
返信

1,910件の閲覧回数
shumpi55
Contributor I
thanks....
0 件の賞賛
返信

1,910件の閲覧回数
shumpi55
Contributor I
thanks... I will try that program.
0 件の賞賛
返信

1,910件の閲覧回数
shumpi55
Contributor I
thanksFabio........::smileyhappy:
0 件の賞賛
返信