Everybody has a website today or tomorrow, every body needs one to develop their business or anything, Creating a website is a tough job to handle, so for those who thing website making is a difficult job, anvanquest have mdade it easy via its WebEasy Professional 10 is a powerful Web Design Software that helps you to create a beautiful and effective website for your selves and for your. Build a Better Website with the new WebEasy 10 Professional Why Choose WebEasy 10 Professional? Because you can build a great website in just one hour. WebEasy guides you step-by-step with built-in templates and e-commerce tools – no programming or HTML knowledge are needed. Title: Chapter 10 HCS12 Serial Peripheral Interface 1 Chapter 10HCS12 Serial Peripheral Interface 2 What is Serial Peripheral Interface (SPI)? • SPI is a synchronous serial protocol proposed by Motorola to be used as standard for interfacing peripheral chips to a microcontroller. • Devices are classified into the master or slaves. • The SPI protocol uses four wires to carry out the task of data communication • MOSI master out slave in • MISO master in slave out • SCK serial clock • SS slave select • An SPI data transfer is initiated by the master device. A master is responsible for generating the SCK signal to synchronize the data transfer. • The SPI protocol is mainly used to interface with shift registers, LED/LCD drivers, phase locked loop chips, memory components with SPI interface, or A/D or D/A converter chips. 3 The HCS12 SPI Modules • An HCS12 device may have from one to three SPI modules. • The MC9S12DP256 has three SPI modules SPI0, SPI1, and SPI2. • By default, the SPI0 share the use of the upper 4 Port S pins • PS7? SS0 (can be rerouted to PM3) • PS6? SCK0 (can be rerouted to PM5) • PS5? MOSI0 (can be rerouted to PM4) • PS4? MISO0 (can be rerouted to PM2) • By default, the SPI1 shares the use of the lower 4 Port P pins • PP3? SS1 (can be rerouted to PH3) • PP2? SCK1 (can be rerouted to PH2) • PP1? Kew pressure washer repair manual online. MOSI1 (can be rerouted to PH1) • PP0? O = give 999 ammo p = give all weps f3 = fly mode where you can crash into stuff f4 = fly mode where you fly through things these are the cheat codes of far. Far cry cheats devmode downloads. Right-click the 'Far Cry' item. Type -DEVMODE without spaces. (3) Loading the game now enables the following cheats. F1 Toggle camera view between 1st and 3rd person (already built-in) F2 Jump to next spawn-point, on the same level / map F3 Fast-Fly mode: Fly. MISO1 (can be rerouted to PH0) • By default, the SPI2 shares the use of the upper 4 Port P pins • PP6? SS2 (can be rerouted to PH7) • PP7? SCK2 (can be rerouted to PH6) • PP5? MOSI2 (can be rerouted to PH5) • PP4? MISO2 (can be rerouted to PH4) • It is important to make sure that there is no conflict in the use of signal pins when making rerouting decision. 4 SPI Related Registers (1 of 6) • The operating parameters of each SPI module are controlled via two control registers • SPIxCR1 (x 0, 1, or 2) • SPIxCR2 • The baud rate of SPI transfer is controlled by the SPIxBR register. • The operation status of the SPI operation is recorded in the SPIxSR register. • The contents of the SPIxCR1, SPIxCR2, SPIxBR, and SPIxSR registers are illustrated in Figure 10.1 to 10.4, respectively. • The SS pin may be disconnected from SPI by clearing the SSOE bit in the SPIxCR1 register. After that, it can be used as a general I/O pin. • If the SSOE bit in the SPIxCR1 register is set to 1, then the SS signal will be asserted to enable the slave device whenever a new SPI transfer is started. • The equation for setting the SPI baud rate is given in Figure 10.3. 5 SPI Related Registers (2 of 6) 6 SPI Related Registers (3 of 6) 7 SPI Related Registers (4 of 6) 8 SPI Related Registers (5 of 6) 9 SPI Related Registers (6 of 6) • Example 10.1 Give a value to be loaded to the SPIxBR register to set the baud rate to 2 MHz for a 24 MHz bus clock.
0 Comments
Leave a Reply. |