EmbeddedRelated.com
Forums
Memfault Beyond the Launch

SPI TX pin is always high

Started by anand_gy2 May 18, 2013
Hello friends
i am new to this group and also new to Rabbit microprocessors..
i am trying to monitor TX pin using SPI interface...
I am using serial port B and SPI Dynamic C commands SPIwrite..
i have enabled my device as master clocked SPI mode..
Clock and CS line is functioning as per code..but i am not getting any output on TX pin,,it is always high..
1 more thing ..i have not attached any SPI device to it..
i am just trying to monitor TX pins with different data..
I am very new to Dynamic C..so i may be making sily mistakes..
kindly help

Which board/chip are you using?

Regards,
Peter

--- In r..., "anand_gy2" wrote:
>
> Hello friends
> i am new to this group and also new to Rabbit microprocessors..
> i am trying to monitor TX pin using SPI interface...
> I am using serial port B and SPI Dynamic C commands SPIwrite..
> i have enabled my device as master clocked SPI mode..
> Clock and CS line is functioning as per code..but i am not getting any output on TX pin,,it is always high..
> 1 more thing ..i have not attached any SPI device to it..
> i am just trying to monitor TX pins with different data..
> I am very new to Dynamic C..so i may be making sily mistakes..
> kindly help
>

Have you tried the example SPI program supplied with Dynamic C?

--- In r..., "anand_gy2" wrote:
>
> Hello friends
> i am new to this group and also new to Rabbit microprocessors..
> i am trying to monitor TX pin using SPI interface...
> I am using serial port B and SPI Dynamic C commands SPIwrite..
> i have enabled my device as master clocked SPI mode..
> Clock and CS line is functioning as per code..but i am not getting any output on TX pin,,it is always high..
> 1 more thing ..i have not attached any SPI device to it..
> i am just trying to monitor TX pins with different data..
> I am very new to Dynamic C..so i may be making sily mistakes..
> kindly help
>

--- In r..., "anand_gy2" wrote:
>
> Hello friends
> i am new to this group and also new to Rabbit microprocessors..
> i am trying to monitor TX pin using SPI interface...
> I am using serial port B and SPI Dynamic C commands SPIwrite..
> i have enabled my device as master clocked SPI mode..
> Clock and CS line is functioning as per code..but i am not getting any output on TX pin,,it is always high..
> 1 more thing ..i have not attached any SPI device to it..
> i am just trying to monitor TX pins with different data..
> I am very new to Dynamic C..so i may be making sily mistakes..
> kindly help
>
Thanks friends
i was using Dynamic C sample program itself.By enabling PC4 pin for alternate function by writin in PCFR register program got working..
Tnaks


Memfault Beyond the Launch