mc33689通过SPI通信,置位为何不起作用〉?
- UID
- 145820
- 性别
- 男
|
mc33689通过SPI通信,置位为何不起作用〉?
我的程序是;
void MC33689_Init(void) { unsigned char status; status=0x3F; while(!SPSCR_SPTE && ! PTB_PTB6); PTB_PTB6=0; // CS=0 SPDR=status; // while((SPSCR&0x80)==0); // µÈ´ý½ÓÊռĴæÆ÷Âú // SPI_status.Byte = SPDR; // ¶ÁÈ¡ ״̬ /*¼Ä´æÆ÷Ãû£ºSPI ¼Ä´æÆ÷λ£ºD7 D6 D5 D4 D3 D2 D1 D0 붨Ò壺 L2 L1 LIN_UP HS3 HS2 HS1 MODE2 MODE1 ¸³Öµ£º 0 0 1 0 0 0 1 1 ˵Ã÷£ºÊ¹ÓøüĴæÆ÷ÔÚÕý³£¹¤×÷״̬Ϲ¤×÷,slew rate is more than 10kbps normal state */ }
为何测量负载的驱动管脚电平始终是0 ? |
|
|
|
|
|