Confilct between TBM and SCI ?

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Confilct between TBM and SCI ?

5,649 次查看
DEMO908AP64
Contributor I
Hello,

I can successfully use independently TBM and SCI.

But when I try to send a character periodically with the timer, it does not work.

I think there is kind of a conflict. Any idea ?

Thanks
标签 (1)
0 项奖励
回复
6 回复数

904 次查看
rocco
Senior Contributor II
Hi, Dem:

I use both the TBM and the SCI asynchronously on the GP32, and have had no conflicts. However, 1) you appear to be running them synchronously, 2) you may not be interrupt driven, as I am, and 3) you may be using a different HC08 family member.

What processor are you using?

Are you running polled or interrupt driven?

When you say it does not work, what types of symptoms are you getting? Is it not sending anything, or might it be sending only one character?

Can you post a code snippet that we can play with?

Hope we can help . . .
0 项奖励
回复

904 次查看
peg
Senior Contributor IV

Hi Rocco,

Thanks for the AN.

This topic has progressed further at the old yahoo group if you want to follow it there.

Peg

0 项奖励
回复

904 次查看
DEMO908AP64
Contributor I
What is the name of the news group ?

Thanks.
0 项奖励
回复

904 次查看
peg
Senior Contributor IV
Ok
I'm confused, what is happening here?
 
DEMO908AP64, I thought you posted the same question here and here:
 
 
if you didn't what is going on?
 
Peg
0 项奖励
回复

904 次查看
rocco
Senior Contributor II
Hi, Dem:

I saw your code (if that is your code) at the link that Peg posted. I think that your problem is with the CONFIG2 register.

After RESET, the CONFIG2 register can only be written once. Any other writes after the first will be ignored. Both your SCI init and timer init routines write to the CONFIG2 register. Since the timer init runs first, the SCI init routine's write will not set the correct source for the baud rate generator.

This would also explain why each routine runs correctly when run by itself.
0 项奖励
回复

904 次查看
DEMO908AP64
Contributor I
Rocco,

I checked and found where it was written in the datasheet...

I missed it out...

Thank you so much !

Message Edited by DEMO908AP64 on 03-09-200607:12 PM

0 项奖励
回复