在线时间16 小时
UID2081664
注册时间2014-3-26
NXP金币0
该用户从未签到
注册会员

- 积分
- 179
- 最后登录
- 1970-1-1
|
您好请问有谁有过用这颗芯片?
我在设定的Tx模式没问题后(可编译,可烧录功能正常)
加入Rx Tx代码,把Rx Tx互接来测试,Rx中断,Build沒问题但是烧录时会错误?

但我把interrupt 24 void SCI0RX_ISR(void) 删除就没问题了。
有人遇过这问题吗?还是请问谁有PA4 SCI Rx Sample code?
void SCI0_Init(void)
{
setReg8(SCI0_C2, 0x00U); /* Disable the SCI0 module */
(void)getReg8(SCI0_S1); /* Dummy read of the SCI0_S1 register to clear flags */
(void)getReg8(SCI0_D); /* Dummy read of the SCI0_D register to clear flags */
setReg8(SCI0_S2, 0xC0U);
setReg8(SCI0_BDH, 0x00U);
setReg8(SCI0_BDL, 0x08U);
setReg8(SCI0_C1, 0x00U);
setReg8(SCI0_C3, 0x00U);
setReg8(SCI0_C2, 0x2CU); //open rx tx function , open rx interrupted
}
interrupt 24 void SCI0RX_ISR(void)
{
byte u8receiver;
(void) SCI0_S1; // read SCIS1 register for clear RDRF flag
u8receiver = SCI0_D;
}
|
|