MC9S12DG256B vs. MC9S12DG256  differences (i.e. Port T)

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

MC9S12DG256B vs. MC9S12DG256  differences (i.e. Port T)

1,644 次查看
darrin
Contributor II
We were using an 9S12DG256Bcpv and had no problems.
Now we have to buy the 9S12DG256cpv (since the B part is obsolete) and find the PORT T bit0 &1 do not output.
 
DDRT = 255;
 
for (; ; )
{
 
PTT = 0;
asm nop;
PTT = 255;
asm nop;
 
}
 
if you read PTIT reg it shows 3 when PTT = 0
 
I dont use any of the timer/capture registers.
 
please help.
 
 
标签 (1)
0 项奖励
回复
3 回复数

687 次查看
Nabla69
Contributor V
Hello Darrin,
 
The Datasheet of the DG256 I have = 9S12DT256DGV3/D states Port T bits 0 to 7 are Inputs and Outputs.
In you configuration PTIT is supposed to read the same as PTT.
 
Your part can be damaged. What kind of load do you have on PTT0 and PTT1 ?
 
Alvin.
0 项奖励
回复

687 次查看
darrin
Contributor II
I use this part in different designs. One particular design I have does not use Port T at all. (pins are open).
And yet it exhibits the same symptoms (bit 0 & 1 appear to stay as inputs).
 
I even removed the DG256cpv and replaced it with a DG256Bcpv and ran the same code. And bit 0 & 1 toggle like they are supposed too.
 
0 项奖励
回复

687 次查看
darrin
Contributor II
I also found (using the BDM debugger) that the INITIAL state of the chip shows
PTT = 3 and PTIT = 3 and DDRT  = 0 (even though all the PORT T pins are open)
I even lifted the pins just to make sure there is no PCB problem.
 
All the timer registers show 0 (as they should), so PORT T is not set up as a timer / capture pin.
 
 
0 项奖励
回复