Sign in

username:

password:



Not a member?

Search rabbit-semi



Search tips

Subscribe to rabbit-semi



Ads

Discussion Groups

Discussion Groups | Rabbit-Semi | Help on simple clocked serial operations

This is a group for folks designing and programming embedded systems using the Rabbit Semiconductor C-programmable microcontroller. Rabbit Semi is a spin-off from Z-World who makes a variety of embedded modules and tools. This group is not affiliated with either Rabbit or Z-World, but is a user forum for sharing ideas, asking questions, flaunting knowledge, and other typical user group stuff. The Rabbit is a powerful uC, supported by a full-featured C-compiler.

Help on simple clocked serial operations - Marco Trapanese - May 22 11:32:39 2008

Hello,

I'm using an RCM4100 which should communicate with an external device
through a clocked-serial port (CS, MISO, MOSI, SCK). The RCM is the
Master, the other device the Slave.

With the Rabbit 4000 I/O LIB Utility I configured the serial C as follow:

Serial Port C
Clocked, internal clock
Tx Pin: PC2
Rx Pin: PC3
Bit order: Normal (LSB)
Timer Synchronization: None
Clock polarity: Normal, inactive high
Serial Clock (output): PC7

Also I configured PC4 as a general purpose output pin: this is the CS.
Well, I have few questions I can't answer after reading the
Microprocessor Manual and some examples in DC10.21.

1) How should I define the data rate - that is the clock frequency?

2) I tried to use the SPI.lib but I'm afraid it isn't the correct way
to use my configuration described above. So... what instructions I
need to either transmit a byte to the slave or transmit-while-receive
a byte to/from slave?

3) The CS pin needs to be handled manually, doesn't it?

Thank for any advice,
Marco / iw2nzm

------------------------------------



(You need to be a member of rabbit-semi -- send a blank email to rabbit-semi-subscribe@yahoogroups.com )