Reply by anand_gy2 May 23, 20132013-05-23
--- 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

Reply by seecwriter May 18, 20132013-05-18
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
>

Reply by petermcs May 18, 20132013-05-18
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
>

Reply by anand_gy2 May 18, 20132013-05-18
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