Hi,
We would like to issue a command serially from master to slave but we don't know how. We are trying to interface a temperature sensor to the board and we got stuck on how to control the clock pulse given by the Master so that we can input 8 bits one at a time. Does this clock pulse have to be controlled by a delay or do we have to use some PWM? Once we establish this, how do we actually indicate that one bit per clock cycle should be processed at a time?
Thanks!
So since the user manual for the LPC23xx processors very clearly describes the availability of SPI communication in hardware (not just the SPI peripherial but also through the more advanced SSP device - Synchronous Serial Port) the question must then be: Exactly where are you stuck? What issues do you see with using the hw functionality of the LPC23xx processor to communicate with your specific temperature sensor?
Why did you bring in PWM, when the SPI peripherial in the processor explicitly clocks one bit for every pulse of the clock signal?
The documentation in the user manual is very good. And there are also code bundles available for the processor. What work have _you_ invested on this problem of yours?