Confilct between TBM and SCI ?

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

Confilct between TBM and SCI ?

5,290 Views
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
Labels (1)
0 Kudos
6 Replies

545 Views
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 Kudos

545 Views
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 Kudos

545 Views
DEMO908AP64
Contributor I
What is the name of the news group ?

Thanks.
0 Kudos

545 Views
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 Kudos

545 Views
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 Kudos

545 Views
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 Kudos