56F8346/CodeWarrior8/ProcessorExpert/ - Problem in SPI and I/O pin using GPIO_E

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

56F8346/CodeWarrior8/ProcessorExpert/ - Problem in SPI and I/O pin using GPIO_E

2,062 次查看
howdeterminepwm
Contributor I
Hi all,
I have great problem with SPI0 in processor 56F8346. In my hardware, i used  the SPI0 (I/O's: GPIOE6_MISO0; GPIOE5_MOSI0; GPIOE4_SCLK0 ) it's default configuration of Processor Expert to SPI0.
The Data pin and Clock Pin are ok! Starter and finished in same time (osciloscope). the problem is that I use pin 116 as a CS (chip Select), I can easily monitor this as a pin I / O, one moment as 3v3 (PutVal(true) function or SetRegBit(GPIO_E_DR, D10)) other moment as 0v0, with the same functions or macros.
Now when using the following example code:
Code:
CS_ETH_PutVal(FALSE);  //CS as LOWSPI__SendChar(0x03);   //Function fo Processor Expert for write dataCS_ETH_PutVal(TRUE);   //End of Write, pin 116 GPIO_E_D10 as High

The pin 116 is never 0v0, never LOW. The SPI clock impossible that the I/O is Low and ever High.
And thus form can not enable my Ethernet chip in my hardware. What's problem? Help-me please.


标签 (1)
标记 (1)
0 项奖励
回复
1 回复

929 次查看
trytohelp
NXP Employee
NXP Employee
Hi,
 
The better way will be to log it directly in the Technical support system.
Please use Freescale on line support web page.
  - Go to following URL: http://www.freescale.com/TechSupport
  - Click on Submit a Service Request. You will come to a login page.
  - You can submit your request through the web from there.
 
Please provide us more details about the Tool version used.
To do that you must:
* CW:
Start the IDE and click on Help | About Metrowerks CodeWarrior.
Click on Installed Products 
Provide us all info displayed.
Or you can save them in a txt file.
 
Pascal
0 项奖励
回复