11.07.2015 Views

Clike here to get datasheet of CC1101 - Elechouse

Clike here to get datasheet of CC1101 - Elechouse

Clike here to get datasheet of CC1101 - Elechouse

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

<strong>CC1101</strong>Figure 9 gives a brief overview <strong>of</strong> differentregister access types possible.10.6 PATABLE AccessThe 0x3E address is used <strong>to</strong> access thePATABLE, which is used for selecting PApower control settings. The SPI expects up <strong>to</strong>eight data bytes after receiving the address.By programming the PATABLE, controlled PApower ramp-up and ramp-down can beachieved, as well as ASK modulation shapingfor reduced bandwidth. See SmartRF ® Studio[7] for recommended shaping / PA rampingsequences.See Section 24 on page 49 for details onoutput power programming.The PATABLE is an 8-byte table that definesthe PA control settings <strong>to</strong> use for each <strong>of</strong> theeight PA power values (selected by the 3-bitvalue FREND0.PA_POWER). The table iswritten and read from the lowest setting (0) <strong>to</strong>the highest (7), one byte at a time. An indexcounter is used <strong>to</strong> control the access <strong>to</strong> thetable. This counter is incremented each time abyte is read or written <strong>to</strong> the table, and set <strong>to</strong>the lowest index when CSn is high. When thehighest value is reached the counter restartsat zero.The access <strong>to</strong> the PATABLE is either singlebyte or burst access depending on the burstbit. When using burst access the index counterwill count up; when reaching 7 the counter willrestart at 0. The R/W¯ bit controls whether theaccess is a read or a write access.If one byte is written <strong>to</strong> the PATABLE and thisvalue is <strong>to</strong> be read out then CSn must be sethigh before the read access in order <strong>to</strong> set theindex counter back <strong>to</strong> zero.Note that the content <strong>of</strong> the PATABLE is lostwhen entering the SLEEP state, except for thefirst byte (index 0).Figure 9: Register Access Types11 Microcontroller Interface and Pin ConfigurationIn a typical system, <strong>CC1101</strong> will interface <strong>to</strong> amicrocontroller. This microcontroller must beable <strong>to</strong>:• Program <strong>CC1101</strong> in<strong>to</strong> different modes• Read and write buffered data• Read back status information via the 4-wireSPI-bus configuration interface (SI, SO,SCLK and CSn).11.1 Configuration InterfaceThe microcontroller uses four I/O pins for theSPI configuration interface (SI, SO, SCLK andCSn). The SPI is described in Section 10 onpage 23.11.2 General Control and Status PinsThe <strong>CC1101</strong> has two dedicated configurablepins (GDO0 and GDO2) and one shared pin(GDO1) that can output internal statusinformation useful for control s<strong>of</strong>tware. Thesepins can be used <strong>to</strong> generate interrupts on theMCU. See Section 30 page 55 for more detailson the signals that can be programmed.GDO1 is shared with the SO pin in the SPIinterface. The default setting for GDO1/SO is3-state output. By selecting any other <strong>of</strong> theprogramming options, the GDO1/SO pin willbecome a generic pin. When CSn is low, thepin will always function as a normal SO pin.In the synchronous and asynchronous serialmodes, the GDO0 pin is used as a serial TXdata input pin while in transmit mode.SWRS061C Page 27 <strong>of</strong> 94

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!