Rainbow-electronics ATmega128RFA1 User Manual

Browse online or download User Manual for Sensors Rainbow-electronics ATmega128RFA1. Rainbow Electronics ATmega128RFA1 User Manual

  • Download
  • Add to my manuals
  • Print
  • Page
    / 524
  • Table of contents
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 0
1
8266A-MCU Wireless-12/09
ATmega128RFA1
8-bit
Microcontroller
with Low Power
2.4GHz
Transceiver for
ZigBee and
IEEE 802.15.4
ATmega128RFA1
PRELIMINARY
8266A-MCU Wireless-12/09
Features
High Performance, Low Power AVR
®
8-Bit Microcontroller
Advanced RISC Architecture
- 135 Powerful Instructions – Most Single Clock Cycle Execution
- 32x8 General Purpose Working Registers
- Fully Static Operation
- Up to 16 MIPS Throughput at 16 MHz and 1.8V
- On-Chip 2-cycle Multiplier
Non-volatile Program and Data Memories
- 128K Bytes of In-System Self-Programmable Flash
Endurance: 2000 Write/Erase Cycles @ 85°C
- 4K Bytes EEPROM
Endurance: 2000 Write/Erase Cycles @ 85°C
- 16K Bytes Internal SRAM
JTAG (IEEE std. 1149.1 compliant) Interface
- Boundary-scan Capabilities According to the JTAG Standard
- Extensive On-chip Debug Support
- Programming of Flash EEPROM, Fuses and Lock Bits through the JTAG interface
Peripheral Features
- Multiple Timer/Counter & PWM channels
- Real Time Counter with Separate Oscillator
- 10-bit, 330 ks/s A/D Converter; Analog Comparator; On-chip Temperature Sensor
- Master/Slave SPI Serial Interface
- Two Programmable Serial USART
- Byte Oriented 2-wire Serial Interface
Advanced Interrupt Handler
Watchdog Timer with Separate On-Chip Oscillator
Power-on Reset and Low Current Brown-Out Detector
Advanced Power Save Modes
Fully integrated Low Power Transceiver for 2.4 GHz ISM Band
- Supported Data Rates: 250 kb/s and 500 kb/s, 1 Mb/s, 2 Mb/s
- -100 dBm RX Sensitivity; TX Output Power up to 3.5 dBm
- Hardware Assisted MAC (Auto-Acknowledge, Auto-Retry)
- 32 Bit IEEE 802.15.4 Symbol Counter
- Baseband Signal Processing
- SFR-Detection, Spreading; De-Spreading; Framing ; CRC-16 Computation
- Antenna Diversity and TX/RX control
- TX/RX 128 Byte Frame Buffer
Hardware Security (AES, True Random Generator)
Integrated Crystal Oscillators (32.768 kHz & 16 MHz)
I/O and Package
- 38 Programmable I/O Lines
- 64-pad QFN (RoHS/Fully Green)
Temperature Range: -40°C to 85°C Industrial
Supply voltage range 1.8V to 3.6V with integrated voltage regulators
Ultra Low Power consumption (1.8 to 3.6V) for Rx/Tx & AVR: <18.6 mA
- CPU Active Mode (16MHz): 4.1 mA
- 2.4GHz Transceiver: RX_ON 12.5 mA / TX 14.5 mA (maximum TX output power)
- Deep Sleep Mode: <250nA @ 25°C
Speed Grade: 0 – 16 MHz @ 1.8 – 3.6V
Applications
ZigBee
®
/ IEEE 802.15.4-2006/2003 – Full And Reduced Function Device (FFD/RFD)
General Purpose 2.4GHz ISM Band Transceiver with Microcontroller
RF4CE, SP100, WirelessHART, ISM Applications and IPv6 / 6LoWPAN
Page view 0
1 2 3 4 5 6 ... 523 524

Summary of Contents

Page 1 - Applications

1 8266A-MCU Wireless-12/09 ATmega128RFA1 8-bit Microcontroller with Low Power 2.4GHz Transceiv

Page 2 - 2 Disclaimer

10 8266A-MCU Wireless-12/09 ATmega128RFA1 The fast-access Register File contains 32 x 8-bit general purpose working registers with

Page 3

100 8266A-MCU Wireless-12/09 ATmega128RFA1 VCO - Voltage controlled oscillator VREG - Voltage regulator XOSC - Crystal

Page 4

101 8266A-MCU Wireless-12/09 ATmega128RFA1 Table 9-28 AES_MODE Register Bits Register Bits Value Description 0 AES Mode is ECB (Ele

Page 5

102 8266A-MCU Wireless-12/09 ATmega128RFA1 9.12.3 AES_STATE – AES Plain and Cipher Text Buffer Register Bit 7 6 5 4 3 2 1 0

Page 6

103 8266A-MCU Wireless-12/09 ATmega128RFA1 command to the TRX_CMD bits of register TRX_STATE. The register is not accessible in SLEEP

Page 7

104 8266A-MCU Wireless-12/09 ATmega128RFA1 Register Bits Value Description 0x1F STATE_TRANSITION_IN_PROGRESS 9.12.6 TRX_S

Page 8 - • TBD years at 25°C

105 8266A-MCU Wireless-12/09 ATmega128RFA1 A write access to register bits TRX_CMD initiates a state transition of the ra

Page 9

106 8266A-MCU Wireless-12/09 ATmega128RFA1 This register bit enables pin DIG3 and pin DIG4 to indicate the transmit st

Page 10

107 8266A-MCU Wireless-12/09 ATmega128RFA1 Table 9-37 PA_LT Register Bits Register Bits Value Description 0 2 µs 1 4 µs 2 6 µs PA

Page 11 - ATmega128RFA1

108 8266A-MCU Wireless-12/09 ATmega128RFA1 valid until the next TRX24_RX_END interrupt is issued, caused by a new frame

Page 12

109 8266A-MCU Wireless-12/09 ATmega128RFA1 µs. For manually initiated ED measurements in these modes the measurement period is still 1

Page 13

11 8266A-MCU Wireless-12/09 ATmega128RFA1 7.4 Status Register The Status Register contains information about the result of the most re

Page 14

110 8266A-MCU Wireless-12/09 ATmega128RFA1 Table 9-43 CHANNEL Register Bits Register Bits Value Description 11 2405 MHz 12 2410

Page 15

111 8266A-MCU Wireless-12/09 ATmega128RFA1 These bits define the received power threshold of the Energy above threshold alg

Page 16

112 8266A-MCU Wireless-12/09 ATmega128RFA1 Table 9-45 SFD_VALUE Register Bits Register Bits Value Description SFD_VALUE7:0 0xA7

Page 17

113 8266A-MCU Wireless-12/09 ATmega128RFA1 This register bit signals the currently selected antenna path. The selection may

Page 18 - 8 AVR Memories

114 8266A-MCU Wireless-12/09 ATmega128RFA1 Register Bits Value Description 2 Antenna 0: DIG1=L, DIG2=H 3 Default value for ANT_

Page 19

115 8266A-MCU Wireless-12/09 ATmega128RFA1 • Bit 6 – TX_END - TX_END Interrupt Status • Bit 5 – AMI - Address Match Interrupt Status

Page 20 - 8.3 EEPROM Data Memory

116 8266A-MCU Wireless-12/09 ATmega128RFA1 Table 9-53 DVDD_OK Register Bits Register Bits Value Description 0 Digital voltage re

Page 21

117 8266A-MCU Wireless-12/09 ATmega128RFA1 Table 9-56 BATMON_HR Register Bits Register Bits Value Description 0 Enables the low ran

Page 22

118 8266A-MCU Wireless-12/09 ATmega128RFA1 Bit 3 2 1 0 NA ($152) XTAL_TRIM3 XTAL_TRIM2 XTAL_TRIM1 XTAL_TRIM0 XOSC_CTRL R

Page 23

119 8266A-MCU Wireless-12/09 ATmega128RFA1 This register controls the sensitivity threshold of the receiver. • Bit 7 – RX_PDT_DIS -

Page 24

12 8266A-MCU Wireless-12/09 ATmega128RFA1 stored when entering an interrupt routine and restored when returning from an interrupt r

Page 25

120 8266A-MCU Wireless-12/09 ATmega128RFA1 specified in IEEE 802.15.4-2006. Reserved frame types are explained in IEEE 802.15.4 sec

Page 26 - 8.7 Other Port Registers

121 8266A-MCU Wireless-12/09 ATmega128RFA1 Bit 3 2 1 0 NA ($158) Resx3 Resx2 Resx1 Resx0 FTN_CTRL Read/Write RW RW RW R

Page 27

122 8266A-MCU Wireless-12/09 ATmega128RFA1 Bit 3 2 1 0 NA ($15B) Resx3 Resx2 Resx1 Resx0 PLL_DCU Read/Write RW RW RW

Page 28

123 8266A-MCU Wireless-12/09 ATmega128RFA1 9.12.30 MAN_ID_0 – Device Identification Register (Manufacture ID Low Byte) Bit 7 6 5 4

Page 29

124 8266A-MCU Wireless-12/09 ATmega128RFA1 9.12.33 SHORT_ADDR_1 – Transceiver MAC Short Address Register (High Byte) Bit 7 6 5

Page 30

125 8266A-MCU Wireless-12/09 ATmega128RFA1 This register contains the bits [7:0] of the MAC IEEE address for Frame Filter address reco

Page 31

126 8266A-MCU Wireless-12/09 ATmega128RFA1 9.12.40 IEEE_ADDR_4 – Transceiver MAC IEEE Address Register 4 Bit 7 6 5 4 3 2 1

Page 32

127 8266A-MCU Wireless-12/09 ATmega128RFA1 • Bit 7:0 – IEEE_ADDR_77:70 - MAC IEEE Address These bits map to the bits [63:56] of the 6

Page 33

128 8266A-MCU Wireless-12/09 ATmega128RFA1 Table 9-67 MAX_CSMA_RETRIES Register Bits Register Bits Value Description 0x0 No repe

Page 34 - Section

129 8266A-MCU Wireless-12/09 ATmega128RFA1 9.12.46 CSMA_SEED_1 – Transceiver Acknowledgment Frame Control Register 2 Bit 7 6 NA ($

Page 35 - 9.4 Operating Modes

13 8266A-MCU Wireless-12/09 ATmega128RFA1 Figure 7-2. The X-, Y-, Z-registers In the different addressing modes these address

Page 36

130 8266A-MCU Wireless-12/09 ATmega128RFA1 • Bit 4 – AACK_DIS_ACK - Disable Acknowledgment Frame Transmission If this bit is s

Page 37

131 8266A-MCU Wireless-12/09 ATmega128RFA1 Table 9-71 MIN_BE Register Bits Register Bits Value Description 0 Minimum value of minim

Page 38

132 8266A-MCU Wireless-12/09 ATmega128RFA1 Bit 3 2 1 0 NA ($17B) RX_LENGTH3 RX_LENGTH2 RX_LENGTH1 RX_LENGTH0 TST_RX_LENG

Page 39

133 8266A-MCU Wireless-12/09 ATmega128RFA1 10 MAC Symbol Counter 10.1 Main Features The MAC symbol counter provides symbol timin

Page 40 - is reduced

134 8266A-MCU Wireless-12/09 ATmega128RFA1 10.4 Symbol Counter (32 bit, SCCNT) The symbol counter is a 32 bit counter which

Page 41 - T R X R S T

135 8266A-MCU Wireless-12/09 ATmega128RFA1 It is also possible to manually set the register in order to provide a distinct starting va

Page 42

136 8266A-MCU Wireless-12/09 ATmega128RFA1 Figure 10-1. SFD and Beacon Timestamp Generation Note that Figure 10-1 contains no exac

Page 43

137 8266A-MCU Wireless-12/09 ATmega128RFA1 Figure 10-2. Relative Compare Mode 326BeaconBeacon32732832932432540440540640740240348248348

Page 44 - X O S C =O FF

138 8266A-MCU Wireless-12/09 ATmega128RFA1 10.11.2 SCCNTHL – Symbol Counter Register HL-Byte Bit 7 6 5 4 3 2 1 0 NA ($E3)

Page 45

139 8266A-MCU Wireless-12/09 ATmega128RFA1 10.11.6 SCTSRHL – Symbol Counter Frame Timestamp Register HL-Byte Bit 7 6 5 4 3 2 1

Page 46

14 8266A-MCU Wireless-12/09 ATmega128RFA1 7.6.2 SPL – Stack Pointer Low Bit 7 6 5 4 3 2 1 0 $3D ($5D) SP7 SP6 SP5 SP

Page 47

140 8266A-MCU Wireless-12/09 ATmega128RFA1 10.11.10 SCBTSRHL – Symbol Counter Beacon Timestamp Register HL-Byte Bit 7 6 5 4 3

Page 48

141 8266A-MCU Wireless-12/09 ATmega128RFA1 • Bit 7:0 – SCOCR1HH7:0 - Symbol Counter Output Compare Register 1 HH-Byte 10.11.14 SCOCR

Page 49

142 8266A-MCU Wireless-12/09 ATmega128RFA1 10.11.18 SCOCR2HL – Symbol Counter Output Compare Register 2 HL-Byte Bit 7 6 5 4 3

Page 50

143 8266A-MCU Wireless-12/09 ATmega128RFA1 10.11.22 SCOCR3HL – Symbol Counter Output Compare Register 3 HL-Byte Bit 7 6 5 4 3 2

Page 51

144 8266A-MCU Wireless-12/09 ATmega128RFA1 feature works only if the symbol counter module operates with the 16 MHz clock from XTAL

Page 52

145 8266A-MCU Wireless-12/09 ATmega128RFA1 This register is used to enable the backoff slot counter. • Bit 7:5 – Res6:4 - Reserved Bi

Page 53

146 8266A-MCU Wireless-12/09 ATmega128RFA1 This interrupt indicates a compare match on compare unit 3. • Bit 1 – IRQSCP2 - Compar

Page 54

147 8266A-MCU Wireless-12/09 ATmega128RFA1 11 System Clock and Clock Options This section describes the clock options for the AVR micr

Page 55

148 8266A-MCU Wireless-12/09 ATmega128RFA1 11.2.2 I/O Clock – clkI/O The I/O clock is used by the majority of the I/O modules, like

Page 56 - 51 20 704

149 8266A-MCU Wireless-12/09 ATmega128RFA1 To ensure sufficient startup time, the device issues an internal reset with a

Page 57

15 8266A-MCU Wireless-12/09 ATmega128RFA1 7.7 Instruction Execution Timing Figure 7-4. The Parallel Instruction Fetches and Instructio

Page 58

150 8266A-MCU Wireless-12/09 ATmega128RFA1 When this Oscillator is used as the chip clock, the Watchdog Oscillator will still be us

Page 59

151 8266A-MCU Wireless-12/09 ATmega128RFA1 Figure 11-2. External Clock Drive Configuration CLKIVSSexternal clock When this clock sour

Page 60

152 8266A-MCU Wireless-12/09 ATmega128RFA1 Table 11-10. Start-up Times for the Transceiver Oscillator Clock Selection Power Conditi

Page 61 - 9.5 Functional Description

153 8266A-MCU Wireless-12/09 ATmega128RFA1 possible to determine the state of the prescaler - even if it were readable. Th

Page 62 - 9 - aMaxPHYPacketSize MPDU

154 8266A-MCU Wireless-12/09 ATmega128RFA1 Register Bits Value Description 0xff Calibration value for highest oscillator frequen

Page 63

155 8266A-MCU Wireless-12/09 ATmega128RFA1 Register Bits Value Description 0xB Reserved 0xC Reserved 0xD Reserved 0xE Reserved 0

Page 64

156 8266A-MCU Wireless-12/09 ATmega128RFA1 12 Power Management and Sleep Modes Sleep modes enable the application to shut down unus

Page 65

157 8266A-MCU Wireless-12/09 ATmega128RFA1 Active Clock Domains Oscillators Wake-up Sources Power-down X(3) X

Page 66 - )()( xxMxN ⋅=

158 8266A-MCU Wireless-12/09 ATmega128RFA1 an external level interrupt on INT7:4 or a pin change interrupt can wakeup

Page 67

159 8266A-MCU Wireless-12/09 ATmega128RFA1 12.3 Power Reduction Register The Power Reduction Register (PRR), see "PRR0 –

Page 68

16 8266A-MCU Wireless-12/09 ATmega128RFA1 interrupts. All enabled interrupts can then interrupt the current interrupt routine. The

Page 69 - Extended Operating Mode

160 8266A-MCU Wireless-12/09 ATmega128RFA1 used immediately. Refer to "Internal Voltage Reference" on page 179 for detail

Page 70

161 8266A-MCU Wireless-12/09 ATmega128RFA1 The radio transceiver has a separate reset signal. A radio transceiver reset is initiated b

Page 71

162 8266A-MCU Wireless-12/09 ATmega128RFA1 6. SRAM block #3 (upper 4k bytes), 7. Radio transceiver including AES engine, 8. Non-

Page 72

163 8266A-MCU Wireless-12/09 ATmega128RFA1 AVR State Radio Transceiver State Powerchain off (2,3) DEEP SLEEP off (SLEEP or power re

Page 73

164 8266A-MCU Wireless-12/09 ATmega128RFA1 • Low dropout (LDO) voltage regulator; • Configurable to use an external voltage regul

Page 74 - 9.6 Module Description

165 8266A-MCU Wireless-12/09 ATmega128RFA1 Because the calibration setting is fixed, temperature and load current variations during th

Page 75 - The receiver is designed to

166 8266A-MCU Wireless-12/09 ATmega128RFA1 register take effect in the regulator circuit. The write access from the software must b

Page 76

167 8266A-MCU Wireless-12/09 ATmega128RFA1 The SE bit must be written to logic one to make the MCU enter the sleep mode when the SLEEP

Page 77

168 8266A-MCU Wireless-12/09 ATmega128RFA1 12.6.3 PRR1 – Power Reduction Register 1 Bit 7 6 5 4 3 2 1 0 NA ($65) Res PR

Page 78

169 8266A-MCU Wireless-12/09 ATmega128RFA1 • Bit 2 – PRRAM2 - Power Reduction SRAM 2 Setting this bit to one will disable the SRAM bl

Page 79

17 8266A-MCU Wireless-12/09 ATmega128RFA1 Assembly Code Example ; note: will enter sleep before any pending ; interrupt(s) C Code Exam

Page 80

170 8266A-MCU Wireless-12/09 ATmega128RFA1 12.6.6 DRTRAM0 – Data Retention Configuration Register of SRAM 0 Bit 7 6 5 4 3 2

Page 81

171 8266A-MCU Wireless-12/09 ATmega128RFA1 12.6.8 DRTRAM2 – Data Retention Configuration Register of SRAM 2 Bit 7 6 5 4 3 2 1

Page 82 - IC internal

172 8266A-MCU Wireless-12/09 ATmega128RFA1 12.6.10 LLCR – Low Leakage Voltage Regulator Control Register Bit 7 6 5 4 3 2 1

Page 83 - 9.7 Radio Transceiver Usage

173 8266A-MCU Wireless-12/09 ATmega128RFA1 12.6.11 LLDRH – Low Leakage Voltage Regulator Data Register (High-Byte) Bit 7 6 5 4 3

Page 84

174 8266A-MCU Wireless-12/09 ATmega128RFA1 12.6.13 DPDS0 – Port Driver Strength Register 0 Bit 7 6 5 4 3 2 1 0 NA ($136)

Page 85

175 8266A-MCU Wireless-12/09 ATmega128RFA1 12.6.14 DPDS1 – Port Driver Strength Register 1 Bit 7 6 5 4 3 2 1 0 NA ($137) Re

Page 86

176 8266A-MCU Wireless-12/09 ATmega128RFA1 13 System Control and Reset 13.1 Resetting the AVR During reset, all I/O Registers

Page 87

177 8266A-MCU Wireless-12/09 ATmega128RFA1 Figure 13-1. Reset Logic EVDDRSTNDelay CountersS QRMCU Status Register (MCUSR)BODLEVEL

Page 88

178 8266A-MCU Wireless-12/09 ATmega128RFA1 Figure 13-3. MCU Start-up, RSTN Extended Externally VCCRSTNTIME-OUTINTERNALRESETVPOTVRST

Page 89 - ATm ega128R FA 1

179 8266A-MCU Wireless-12/09 ATmega128RFA1 Figure 13-5. Brown-out Reset During Operation EVDDRSTNTIME-OUTINTERNALRESETtTOUTVBOT-VBOT+

Page 90

18 8266A-MCU Wireless-12/09 ATmega128RFA1 8 AVR Memories This section describes the different memories in the ATmega128RFA1

Page 91

180 8266A-MCU Wireless-12/09 ATmega128RFA1 13.4 Watchdog Timer 13.4.1 Features • Clocked from separate On-chip Oscillator • 3 Op

Page 92

181 8266A-MCU Wireless-12/09 ATmega128RFA1 program security, alterations to the Watchdog set-up must follow timed sequences. The seque

Page 93

182 8266A-MCU Wireless-12/09 ATmega128RFA1 Note: 1. The example code assumes that the part specific header file is included. If

Page 94

183 8266A-MCU Wireless-12/09 ATmega128RFA1 13.5 Register Description 13.5.1 MCUSR – MCU Status Register Bit 7 6 5 4 3 2 1 0

Page 95

184 8266A-MCU Wireless-12/09 ATmega128RFA1 • Bit 6 – WDIE - Watchdog Timeout Interrupt Enable When this bit is written to one and

Page 96

185 8266A-MCU Wireless-12/09 ATmega128RFA1 Register Bits Value Description 0x04 Oscillator Cycles 32k, (0.25s) 0x05 Oscillator Cyc

Page 97

186 8266A-MCU Wireless-12/09 ATmega128RFA1 14 I/O-Ports 14.1 Introduction All ATmega128RFA1 ports have true Read-Modify-Write

Page 98 - 9.10 Abbreviations

187 8266A-MCU Wireless-12/09 ATmega128RFA1 14.2 Ports as General Digital I/O The ports are bi-directional I/O ports with optional inte

Page 99

188 8266A-MCU Wireless-12/09 ATmega128RFA1 14.2.3 Toggling the Pin Writing a logic one to PINxn toggles the value of PORTxn, indepe

Page 100 - 9.12 Register Description

189 8266A-MCU Wireless-12/09 ATmega128RFA1 Figure 14-3. Synchronization when reading an external applied pin value Consider the cloc

Page 101 - NA ($13D) AES_ER

19 8266A-MCU Wireless-12/09 ATmega128RFA1 The five different addressing modes for the data memory cover: Direct, Indirect

Page 102 - AES_KEY7:0 AES_KEY

190 8266A-MCU Wireless-12/09 ATmega128RFA1 Assembly Code Example(1) … ; Define pull-ups and set outputs high ; Define directions fo

Page 103 - 8266A-MCU Wireless-12/09

191 8266A-MCU Wireless-12/09 ATmega128RFA1 described above, floating inputs should be avoided to reduce current consumption in all oth

Page 104

192 8266A-MCU Wireless-12/09 ATmega128RFA1 Note: 1. WRx, WPx, WDx, RRx, RPx, and RDx are common to all pins within the same port.

Page 105

193 8266A-MCU Wireless-12/09 ATmega128RFA1 Table 14-3. Port B Pins Alternate Functions Port Pin Alternate Functions PB7 OC0A/

Page 106

194 8266A-MCU Wireless-12/09 ATmega128RFA1 PCINT4, Pin Change Interrupt source 4: The PB4 pin can serve as an external interrupt so

Page 107

195 8266A-MCU Wireless-12/09 ATmega128RFA1 Signal Name PB7/OC0A/OC1C PB6/OC1B PB5/OC1A PB4/OC2A PUOV 0 0 0 0

Page 108

196 8266A-MCU Wireless-12/09 ATmega128RFA1 • T1 – Port D, Bit 6 T1, this is Timer/Counter1 counter source. • XCK1 – Port D, Bit 5

Page 109

197 8266A-MCU Wireless-12/09 ATmega128RFA1 Signal Name PD7/T0 PD6/T1 PD5/XCK1 PD4/ICP1 DDOV 0 0 1 0 PVOE 0 0 XCK1 OUTPUT ENA

Page 110

198 8266A-MCU Wireless-12/09 ATmega128RFA1 Port Pin Alternate Function PE0 RXD0/PCINT8 (USART0 Receive Pin or Pin Change Interrupt

Page 111 - SFD_VALUE7:0 SFD_VALUE

199 8266A-MCU Wireless-12/09 ATmega128RFA1 RXD0, USART0 Receive Pin. Receive Data (Data input pin for the USART0). When the USART0 rec

Page 112

2 8266A-MCU Wireless-12/09 ATmega128RFA1 1 Pin Configurations Figure 1-1. Pinout ATmega128RFA1 Note: The large center pad undernea

Page 113

20 8266A-MCU Wireless-12/09 ATmega128RFA1 Figure 8-8. On-Chip Data SRAM Access Cycles clkWRRDDataDataAddressAddress validT1 T2 T3Co

Page 114 - Antenna Diversity

200 8266A-MCU Wireless-12/09 ATmega128RFA1 Table 14-12. Port F Pins Alternate Functions Port Pin Alternate Function PF7 ADC7/TDI

Page 115

201 8266A-MCU Wireless-12/09 ATmega128RFA1 Table 14-13. Overriding Signals for Alternate Functions PF7:PF4 Signal Name PF7/ADC7/TDI P

Page 116

202 8266A-MCU Wireless-12/09 ATmega128RFA1 TOSC2, Timer Oscillator pin 1: Setting the AS2 bit to one and the EXCLKAMR bit

Page 117 - Initial Value 1 1 1 1

203 8266A-MCU Wireless-12/09 ATmega128RFA1 Table 14-17. Overriding Signals for Alternate Functions PG1:PG0 Signal Name PG1/DIG1 PG0/D

Page 118 - Res1 Res0 RX_SYN

204 8266A-MCU Wireless-12/09 ATmega128RFA1 14.4 Register Description 14.4.1 MCUCR – MCU Control Register Bit 7 6 5 4 3 2 1

Page 119

205 8266A-MCU Wireless-12/09 ATmega128RFA1 Table 14-20 PDDRV Register Bits Register Bits Value Description 0 2 mA 1 4 mA 2 6 mA P

Page 120 - Initial Value 0 1 0 1

206 8266A-MCU Wireless-12/09 ATmega128RFA1 logic zero or the pin has to be configured as an output pin. If PORTBn is written logic

Page 121

207 8266A-MCU Wireless-12/09 ATmega128RFA1 14.4.8 DDRD – Port D Data Direction Register Bit 7 6 5 4 3 2 1 0 $0A ($2A) DDD7

Page 122 - VERSION_NUM7:0 VERSION_NUM

208 8266A-MCU Wireless-12/09 ATmega128RFA1 The DDEn bit in the DDRE Register selects the direction of the PORTE pin n. If DDEn is w

Page 123 - MAN_ID_17:10 MAN_ID_1

209 8266A-MCU Wireless-12/09 ATmega128RFA1 14.4.15 PINF – Port F Input Pins Address Bit 7 6 5 4 3 2 1 0 $0F ($2F) PINF7:0

Page 124 - IEEE_ADDR_07:00 IEEE_ADDR_0

21 8266A-MCU Wireless-12/09 ATmega128RFA1 The following code examples show one assembly and one C function for writing to the EEPROM.

Page 125 - IEEE_ADDR_37:30 IEEE_ADDR_3

210 8266A-MCU Wireless-12/09 ATmega128RFA1 14.4.18 PING – Port G Input Pins Address Bit 7 6 5 4 3 2 1 0 $12 ($32) Res1

Page 126 - IEEE_ADDR_77:70 IEEE_ADDR_7

211 8266A-MCU Wireless-12/09 ATmega128RFA1 15 Interrupts This section describes the specifics of the interrupt handling as p

Page 127

212 8266A-MCU Wireless-12/09 ATmega128RFA1 Vector No. Program Address(2) Source Interrupt Definition 29 $003A ADC ADC Conversi

Page 128 - CSMA_SEED_07:00 CSMA_SEED_0

213 8266A-MCU Wireless-12/09 ATmega128RFA1 Vector No. Program Address(2) Source Interrupt Definition 65 $0082 SCNT_CMP1 Symbol Co

Page 129

214 8266A-MCU Wireless-12/09 ATmega128RFA1 0X0018 jmp WDT ;Watchdog Timeout Handler 0x001A jmp TIM2_COMPA ;Timer2 CompareA H

Page 130

215 8266A-MCU Wireless-12/09 ATmega128RFA1 0x008C jmp AES_READY ;Encryption/Decryption Ready H. 0x008E jmp BAT_LOW ;Batterie Monit

Page 131 - Resx5 Resx4 TST_CTRL_DIGI

216 8266A-MCU Wireless-12/09 ATmega128RFA1 0xF073 out SPH,r16 ;Set Stack Pointer to top of RAM 0xF074 ldi r16,lo

Page 132 - TRXFBEND7:0 TRXFBEND

217 8266A-MCU Wireless-12/09 ATmega128RFA1 When this bit is zero, the JTAG interface is enabled if the JTAGEN Fuse is pr

Page 133 - 10 MAC Symbol Counter

218 8266A-MCU Wireless-12/09 ATmega128RFA1 16 External Interrupts The External Interrupts are triggered by the INT7:0 pin

Page 134

219 8266A-MCU Wireless-12/09 ATmega128RFA1 16.2 Register Description 16.2.1 EICRA – External Interrupt Control Register A Bit 7 6

Page 135 - 10.10 Symbol Counter Usage

22 8266A-MCU Wireless-12/09 ATmega128RFA1 Assembly Code Example sbic EECR,EEPE rjcmp EEPROM_read ; Set up address (r18:r17) i

Page 136

220 8266A-MCU Wireless-12/09 ATmega128RFA1 Table 16-128 ISC1 Register Bits Register Bits Value Description 0x00 The low level of

Page 137 - 10.11 Register Description

221 8266A-MCU Wireless-12/09 ATmega128RFA1 Register Bits Value Description request. 0x01 Any edge of INTn generates asynchronously

Page 138 - SCTSRHH7:0 SCTSRHH

222 8266A-MCU Wireless-12/09 ATmega128RFA1 16.2.3 EIMSK – External Interrupt Mask Register Bit 7 6 5 4 3 2 1 0 $1D ($3D)

Page 139 - SCBTSRHH7:0 SCBTSRHH

223 8266A-MCU Wireless-12/09 ATmega128RFA1 16.2.5 PCICR – Pin Change Interrupt Control Register Bit 7 6 5 4 3 2 1 0 NA ($68)

Page 140 - SCOCR1HH7:0 SCOCR1HH

224 8266A-MCU Wireless-12/09 ATmega128RFA1 • Bit 1 – PCIF1 - Pin Change Interrupt Flag 1 When a logic change on any PCINT15:

Page 141 - SCOCR2HH7:0 SCOCR2HH

225 8266A-MCU Wireless-12/09 ATmega128RFA1 • Bit 7:1 – PCINT15:9 - Pin Change Enable Mask Bits 15:9 of the PCMSK1 register have

Page 142 - SCOCR3HH7:0 SCOCR3HH

226 8266A-MCU Wireless-12/09 ATmega128RFA1 17 8-bit Timer/Counter0 with PWM 17.1 Features • Two Independent Output Compare Units •

Page 143

227 8266A-MCU Wireless-12/09 ATmega128RFA1 17.2.1 Registers The Timer/Counter (TCNT0) and Output Compare Registers (OCR0A and OCR0B) a

Page 144

228 8266A-MCU Wireless-12/09 ATmega128RFA1 Figure 17-2. Counter Unit Block Diagram DATA BUSTCNTn Control LogiccountTOVn(Int.Req.)Cl

Page 145

229 8266A-MCU Wireless-12/09 ATmega128RFA1 Figure 17-3. Output Compare Unit, Block Diagram OCFnx (Int.Req.)= (8-bit Comparator )OCRnxO

Page 146

23 8266A-MCU Wireless-12/09 ATmega128RFA1 8.4 EEPROM Register Description 8.4.1 EEARH – EEPROM Address Register High Byte Bit 7 6 5

Page 147 - 11.1 Overview

230 8266A-MCU Wireless-12/09 ATmega128RFA1 Be aware that the COM0x1:0 bits are not double buffered together with the com

Page 148 - 11.3 Clock Sources

231 8266A-MCU Wireless-12/09 ATmega128RFA1 A state change of the COM0x1:0 bits will have effect at the first Compare Match after the b

Page 149

232 8266A-MCU Wireless-12/09 ATmega128RFA1 17.7 Modes of Operation The mode of operation i.e., the behavior of the Timer/Counter an

Page 150 - 11.6 External Clock

233 8266A-MCU Wireless-12/09 ATmega128RFA1 for the counter, hence also its resolution. This mode allows greater control of

Page 151

234 8266A-MCU Wireless-12/09 ATmega128RFA1 PWM mode well suited for power regulation, rectification and DAC applications.

Page 152 - 11.10 System Clock Prescaler

235 8266A-MCU Wireless-12/09 ATmega128RFA1 equal to MAX will result in a constantly high or low output (depending on the polarity of t

Page 153 - 11.11 Register Description

236 8266A-MCU Wireless-12/09 ATmega128RFA1 In phase correct PWM mode, the compare unit allows generating PWM waveforms on the OC0x

Page 154 - NA ($61) CLKPCE

237 8266A-MCU Wireless-12/09 ATmega128RFA1 Figure 17-9 shows the same timing data, but with the prescaler enabled. Figure 17-9. Timer/

Page 155

238 8266A-MCU Wireless-12/09 ATmega128RFA1 17.9 Register Description 17.9.1 GTCCR – General Timer/Counter Control Register Bit 7

Page 156 - 12.1 Deep-Sleep Mode

239 8266A-MCU Wireless-12/09 ATmega128RFA1 Table 17-6 COM0A Register Bits Register Bits Value Description 0 Normal port operation,

Page 157

24 8266A-MCU Wireless-12/09 ATmega128RFA1 8.4.4 EECR – EEPROM Control Register Bit 7 6 5 4 3 2 1 0 $1F ($3F) Res1 Res0

Page 158

240 8266A-MCU Wireless-12/09 ATmega128RFA1 17.9.3 TCCR0B – Timer/Counter0 Control Register B Bit 7 6 5 4 3 2 1 0 $25 ($45

Page 159

241 8266A-MCU Wireless-12/09 ATmega128RFA1 Register Bits Value Description 0x04 clk_IO/256 (from prescaler) 0x05 clk_IO/1024 (from

Page 160

242 8266A-MCU Wireless-12/09 ATmega128RFA1 17.9.6 OCR0B – Timer/Counter0 Output Compare Register B Bit 7 6 5 4 $28 ($48) OCR

Page 161

243 8266A-MCU Wireless-12/09 ATmega128RFA1 17.9.8 TIFR0 – Timer/Counter0 Interrupt Flag Register Bit 7 6 5 4 3 2 1 0 $15 ($3

Page 162

244 8266A-MCU Wireless-12/09 ATmega128RFA1 18 16-bit Timer/Counter (Timer/Counter 1, 3, 4, and 5) 18.1 Features • True 16-bit Desi

Page 163

245 8266A-MCU Wireless-12/09 ATmega128RFA1 Figure 18-1. 16-bit Timer/Counter Block Diagram(1) Clock SelectTimer/CounterDATA BUSOCRnAOC

Page 164

246 8266A-MCU Wireless-12/09 ATmega128RFA1 Timer/Counter value at all time. The result of the compare can be used by

Page 165

247 8266A-MCU Wireless-12/09 ATmega128RFA1 Assembly Code Examples(1) ... ; Set TCNTn to 0x01FF ldi r17,0x01 ldi r16,0xFF out TCNTnH,r

Page 166 - 12.6 Register Description

248 8266A-MCU Wireless-12/09 ATmega128RFA1 C Code Examples(1) unsigned int TIM16_ReadTCNTn( void ) { unsigned char sreg; unsign

Page 167

249 8266A-MCU Wireless-12/09 ATmega128RFA1 C Code Examples(1) void TIM16_WriteTCNTn( unsigned int i ) { unsigned char sreg; unsign

Page 168

25 8266A-MCU Wireless-12/09 ATmega128RFA1 The EEPROM can not be programmed during a CPU write to the Flash memory. The software must

Page 169

250 8266A-MCU Wireless-12/09 ATmega128RFA1 Clear Clear TCNTn (set all bits to zero); clkTn Timer/Counter clock; TOP Signalize th

Page 170

251 8266A-MCU Wireless-12/09 ATmega128RFA1 Figure 18-3. Input Capture Unit Block Diagram ICFn (Int.Req.)AnalogComparatorWRITEICRn (16

Page 171

252 8266A-MCU Wireless-12/09 ATmega128RFA1 clock cycles. Note that the input of the noise canceller and edge detector

Page 172 - NA ($12F) Res1 Res0 LLDONE

253 8266A-MCU Wireless-12/09 ATmega128RFA1 Figure 18-4 shows a block diagram of the Output Compare unit. The small “n” in the

Page 173

254 8266A-MCU Wireless-12/09 ATmega128RFA1 18.7.1 Force Output Compare In non-PWM Waveform Generation modes, the match output of th

Page 174 - NA ($136) PFDRV1

255 8266A-MCU Wireless-12/09 ATmega128RFA1 Figure 18-5. Compare Match Output Unit, Schematic PORTDDRD QD QOCnxPinOCnxD QWaveformGenera

Page 175

256 8266A-MCU Wireless-12/09 ATmega128RFA1 Table 18-3. Compare Output Mode, Fast PWM COMnA1 COMnB1 COMnC1 COMnA0 COMnB0 COMnC0 Des

Page 176 - 13 System Control and Reset

257 8266A-MCU Wireless-12/09 ATmega128RFA1 Table 18-5. Waveform Generation Mode Bit Description (1) Mode WGMn3 WGMn2 (CTCn) WGMn1 (PW

Page 177

258 8266A-MCU Wireless-12/09 ATmega128RFA1 cleared to zero when the counter value (TCNTn) matches either the OCRnA (WGMn3:0 = 4)

Page 178

259 8266A-MCU Wireless-12/09 ATmega128RFA1 OCnx is set at BOTTOM. In inverting Compare Output mode output is set on compare match and

Page 179

26 8266A-MCU Wireless-12/09 ATmega128RFA1 8.6 General Purpose I/O Registers The ATmega128RFA1 contains three General Purpose I/O

Page 180 - 13.4 Watchdog Timer

260 8266A-MCU Wireless-12/09 ATmega128RFA1 The procedure for updating ICRn differs from updating OCRnA when used for defining the T

Page 181

261 8266A-MCU Wireless-12/09 ATmega128RFA1 up-counting, and set on the compare match while down-counting. In inverting Outpu

Page 182

262 8266A-MCU Wireless-12/09 ATmega128RFA1 TCNTn and the OCRnx. Note that when working with fixed TOP values, the unused bits are m

Page 183 - 13.5 Register Description

263 8266A-MCU Wireless-12/09 ATmega128RFA1 The PWM resolution for the phase and frequency correct PWM mode can be defined by either IC

Page 184

264 8266A-MCU Wireless-12/09 ATmega128RFA1 The definition of TOP with the ICRn Register works well when using fixed TOP values. Com

Page 185

265 8266A-MCU Wireless-12/09 ATmega128RFA1 Figure 18-11 shows the same timing data, but with the prescaler enabled. Figure 18-11. Ti

Page 186 - 14 I/O-Ports

266 8266A-MCU Wireless-12/09 ATmega128RFA1 Figure 18-13 shows the same timing data, but with the prescaler enabled. Figure 18-13. T

Page 187 - DPDS0/DPDS1

267 8266A-MCU Wireless-12/09 ATmega128RFA1 The COM1B1:0 bits control the output compare behavior of pin OC1B. If one or both of the C

Page 188

268 8266A-MCU Wireless-12/09 ATmega128RFA1 Register Bits Value Description 0x2 PWM, phase correct, 9-bit 0x3 PWM, phase correct

Page 189

269 8266A-MCU Wireless-12/09 ATmega128RFA1 Combined with the WGM11:0 bits found in the TCCR1A Register, these bits control the countin

Page 190

27 8266A-MCU Wireless-12/09 ATmega128RFA1 8.7.1 PORTA – Port A Data Register Bit 7 6 5 4 3 2 1 0 $02 ($22) PORTA7:0 PORTA

Page 191

270 8266A-MCU Wireless-12/09 ATmega128RFA1 18.11.3 TCCR1C – Timer/Counter1 Control Register C Bit 7 6 5 4 3 2 1 0 NA ($82

Page 192

271 8266A-MCU Wireless-12/09 ATmega128RFA1 16-bit registers. See section "Accessing 16-bit Registers" for details.

Page 193

272 8266A-MCU Wireless-12/09 ATmega128RFA1 The Output Compare Registers contain a 16-bit value that is continuously com

Page 194 - PUOE 0 0 0 0

273 8266A-MCU Wireless-12/09 ATmega128RFA1 18.11.10 OCR1CH – Timer/Counter1 Output Compare Register C High Byte Bit 7 6 5 4 3 2

Page 195

274 8266A-MCU Wireless-12/09 ATmega128RFA1 18.11.13 ICR1L – Timer/Counter1 Input Capture Register Low Byte Bit 7 6 5 4 3 2 1

Page 196

275 8266A-MCU Wireless-12/09 ATmega128RFA1 The corresponding Interrupt Vector is executed when the OCF1A Flag, located in T

Page 197

276 8266A-MCU Wireless-12/09 ATmega128RFA1 overflows. TOV1 is automatically cleared when the Timer/Counter1 Overflow Interrupt Vec

Page 198 - Alternate Function

277 8266A-MCU Wireless-12/09 ATmega128RFA1 Register Bits Value Description (set output to high level). • Bit 3:2 – COM3C1:0 - Compa

Page 199

278 8266A-MCU Wireless-12/09 ATmega128RFA1 Register Bits Value Description 0xE Fast PWM, TOP = ICRn 0xF Fast PWM, TOP = OCRnA

Page 200

279 8266A-MCU Wireless-12/09 ATmega128RFA1 Register Bits Value Description 0x7 Fast PWM, 10-bit 0x8 PWM, Phase and frequency corre

Page 201

28 8266A-MCU Wireless-12/09 ATmega128RFA1 8.7.5 DDRC – Port C Data Direction Register Bit 7 6 5 4 3 2 1 0 $07 ($27) DDC7

Page 202

280 8266A-MCU Wireless-12/09 ATmega128RFA1 • Bit 6 – FOC3B - Force Output Compare for Channel B The FOC3B bit is only active when

Page 203

281 8266A-MCU Wireless-12/09 ATmega128RFA1 The two Timer/Counter I/O locations (TCNT3H and TCNT3L, combined TCNT3) give dire

Page 204 - 14.4 Register Description

282 8266A-MCU Wireless-12/09 ATmega128RFA1 18.11.23 OCR3BH – Timer/Counter3 Output Compare Register B High Byte Bit 7 6 5 4 3

Page 205

283 8266A-MCU Wireless-12/09 ATmega128RFA1 18.11.26 OCR3CL – Timer/Counter3 Output Compare Register C Low Byte Bit 7 6 5 4 3 2

Page 206 - PORTD7:0 PORTD

284 8266A-MCU Wireless-12/09 ATmega128RFA1 18.11.29 TIMSK3 – Timer/Counter3 Interrupt Mask Register Bit 7 6 5 4 3 2 1 0 N

Page 207 - PORTE7:0 PORTE

285 8266A-MCU Wireless-12/09 ATmega128RFA1 This bit is reserved for future use. A read access always will return zero. A write access

Page 208 - PORTF7:0 PORTF

286 8266A-MCU Wireless-12/09 ATmega128RFA1 COM4A1:0 bit functionality when the WGM43:0 bits are set to a normal or a CTC mode (non-

Page 209

287 8266A-MCU Wireless-12/09 ATmega128RFA1 Register Bits Value Description 0x5 Fast PWM, 8-bit 0x6 Fast PWM, 9-bit 0x7 Fast PWM,

Page 210

288 8266A-MCU Wireless-12/09 ATmega128RFA1 Register Bits Value Description 0x4 CTC, TOP = OCRnA 0x5 Fast PWM, 8-bit 0x6 Fast P

Page 211 - 15 Interrupts

289 8266A-MCU Wireless-12/09 ATmega128RFA1 Compare Match (CTC) mode using OCR4A as TOP. The FOC4A bits are always read as zero. • Bit

Page 212

29 8266A-MCU Wireless-12/09 ATmega128RFA1 9 Low-Power 2.4 GHz Transceiver 9.1 Features • High performance RF-CMOS 2.4 GHz radio trans

Page 213

290 8266A-MCU Wireless-12/09 ATmega128RFA1 The two Timer/Counter I/O locations (TCNT4H and TCNT4L, combined TCNT4) give

Page 214

291 8266A-MCU Wireless-12/09 ATmega128RFA1 18.11.38 OCR4BH – Timer/Counter4 Output Compare Register B High Byte Bit 7 6 5 4 3 2

Page 215

292 8266A-MCU Wireless-12/09 ATmega128RFA1 18.11.41 OCR4CL – Timer/Counter4 Output Compare Register C Low Byte Bit 7 6 5 4 3

Page 216 - 15.4 Register Description

293 8266A-MCU Wireless-12/09 ATmega128RFA1 18.11.44 TIMSK4 – Timer/Counter4 Interrupt Mask Register Bit 7 6 5 4 3 2 1 0 NA (

Page 217

294 8266A-MCU Wireless-12/09 ATmega128RFA1 • Bit 5 – ICF4 - Timer/Counter4 Input Capture Flag The Timer/Counter4 has only limi

Page 218 - 16 External Interrupts

295 8266A-MCU Wireless-12/09 ATmega128RFA1 Register Bits Value Description 1 Reserved 2 Reserved 3 Reserved • Bit 5:4 – COM5B1:0

Page 219 - 16.2 Register Description

296 8266A-MCU Wireless-12/09 ATmega128RFA1 Register Bits Value Description 0x8 PWM, Phase and frequency correct, TOP = ICRn 0x9

Page 220

297 8266A-MCU Wireless-12/09 ATmega128RFA1 Register Bits Value Description 0x7 Fast PWM, 10-bit 0x8 PWM, Phase and frequency corre

Page 221

298 8266A-MCU Wireless-12/09 ATmega128RFA1 The FOC5B bit is only active when the WGM53:0 bits specify a non-PWM mode. When writing

Page 222

299 8266A-MCU Wireless-12/09 ATmega128RFA1 counter. To ensure that both the high and low bytes are read and written simultaneously whe

Page 223

3 8266A-MCU Wireless-12/09 ATmega128RFA1 3 Overview The ATmega128RFA1 is a low-power CMOS 8 bit microcontroller based on the

Page 224

30 8266A-MCU Wireless-12/09 ATmega128RFA1 The ATmega128RFA1 features a low-power 2.4 GHz radio transceiver designed for in

Page 225

300 8266A-MCU Wireless-12/09 ATmega128RFA1 The Output Compare Registers contain a 16-bit value that is continuously com

Page 226 - DATA BUS

301 8266A-MCU Wireless-12/09 ATmega128RFA1 18.11.56 OCR5CL – Timer/Counter5 Output Compare Register C Low Byte Bit 7 6 5 4 3 2

Page 227 - 17.4 Counter Unit

302 8266A-MCU Wireless-12/09 ATmega128RFA1 18.11.59 TIMSK5 – Timer/Counter5 Interrupt Mask Register Bit 7 6 5 4 3 2 1 0 N

Page 228

303 8266A-MCU Wireless-12/09 ATmega128RFA1 • Bit 5 – ICF5 - Timer/Counter5 Input Capture Flag The Timer/Counter5 has only limited

Page 229 - = (8-bit Comparator )

304 8266A-MCU Wireless-12/09 ATmega128RFA1 19 Timer/Counter 0, 1, 3, 4, and 5 Prescaler Timer/Counter 0, 1, 3, 4, and 5 shar

Page 230

305 8266A-MCU Wireless-12/09 ATmega128RFA1 Enabling and disabling of the clock input must be done when Tn has been stable for at least

Page 231

306 8266A-MCU Wireless-12/09 ATmega128RFA1 This bit is reserved for future use. A read access always will return zero. A write acce

Page 232 - 17.7 Modes of Operation

307 8266A-MCU Wireless-12/09 ATmega128RFA1 20 Output Compare Modulator (OCM1C0A) 20.1 Overview The Output Compare Modulator (OCM) allo

Page 233 - (Toggle)

308 8266A-MCU Wireless-12/09 ATmega128RFA1 When the modulator is enabled the type of modulation (logical AND or OR) ca

Page 234

309 8266A-MCU Wireless-12/09 ATmega128RFA1 21 8-bit Timer/Counter2 with PWM and Asynchronous Operation 21.1 Features Timer/Counter2 is

Page 235

31 8266A-MCU Wireless-12/09 ATmega128RFA1 The received RF signal at pins RFN and RFP is differentially fed through the low-noise ampli

Page 236 - OC0xPCPWM

310 8266A-MCU Wireless-12/09 ATmega128RFA1 register or bit defines in a program, the precise form must be used, i.e.,

Page 237

311 8266A-MCU Wireless-12/09 ATmega128RFA1 "Asynchronous Operation of Timer/Counter2" on page 320. For details on clock sour

Page 238 - 17.9 Register Description

312 8266A-MCU Wireless-12/09 ATmega128RFA1 not (inverted or non-inverted PWM). For non-PWM modes the COM2x1:0 bits control w

Page 239

313 8266A-MCU Wireless-12/09 ATmega128RFA1 Figure 21-3. CTC Mode, Timing Diagram TCNTnOCn(Toggle)OCnx Interrupt Flag Set1 4Period2 3(C

Page 240

314 8266A-MCU Wireless-12/09 ATmega128RFA1 Figure 21-4. Fast PWM Mode, Timing Diagram TCNTnOCRnx Update andTOVn Interrupt Flag Set

Page 241

315 8266A-MCU Wireless-12/09 ATmega128RFA1 includes non-inverted and inverted PWM outputs. The small horizontal line marks

Page 242

316 8266A-MCU Wireless-12/09 ATmega128RFA1 • OCR2A changes its value from MAX, like in Figure 21-5 on page 315. When t

Page 243

317 8266A-MCU Wireless-12/09 ATmega128RFA1 The OCR2x Register access may seem complex, but this is not the case. When th

Page 244 - 18.2 Overview

318 8266A-MCU Wireless-12/09 ATmega128RFA1 Figure 21-7. Compare Match Output Unit, Schematic PORTDDRD QD QOCnxPinOCnxD QWaveformGen

Page 245

319 8266A-MCU Wireless-12/09 ATmega128RFA1 COM2x1 COM2x0 Description 1 0 Clear OC2x on Compare Match, set OC2x at BOTTOM, (non-in

Page 246

32 8266A-MCU Wireless-12/09 ATmega128RFA1 register access is only possible, if the transceiver clock is available. There

Page 247

320 8266A-MCU Wireless-12/09 ATmega128RFA1 Figure 21-9 below shows the same timing data, but with the prescaler enabled. Figure 21-

Page 248

321 8266A-MCU Wireless-12/09 ATmega128RFA1 • Warning: When switching between asynchronous and synchronous clocking of Timer/C

Page 249 - 18.5 Counter Unit

322 8266A-MCU Wireless-12/09 ATmega128RFA1 advanced by at least one before the processor can read the counter value. A

Page 250 - 18.6 Input Capture Unit

323 8266A-MCU Wireless-12/09 ATmega128RFA1 The TOSC1 pin is selected by setting the EXCLKAMR bit in the ASSR register to logic zero.

Page 251 - DATA BUS (8-bit)

324 8266A-MCU Wireless-12/09 ATmega128RFA1 • Bit 1 – OCIE2A - Timer/Counter2 Output Compare Match A Interrupt Enable When the OCIE

Page 252 - 18.7 Output Compare Units

325 8266A-MCU Wireless-12/09 ATmega128RFA1 21.11.3 TCCR2A – Timer/Counter2 Control Register A Bit 7 6 5 4 3 2 1 0 NA ($B0)

Page 253 - DATA BUS (8-bit)

326 8266A-MCU Wireless-12/09 ATmega128RFA1 Table 21-9 WGM2 Register Bits Register Bits Value Description 0x0 Normal mode of oper

Page 254

327 8266A-MCU Wireless-12/09 ATmega128RFA1 the counter even if the pin is configured as an output. This feature allows s

Page 255

328 8266A-MCU Wireless-12/09 ATmega128RFA1 The Output Compare Register B contains an 8-bit value that is continuously compared wit

Page 256 - 18.9 Modes of Operation

329 8266A-MCU Wireless-12/09 ATmega128RFA1 this bit is cleared by hardware. A logical zero in this bit indicates that OCR2B is ready t

Page 257

33 8266A-MCU Wireless-12/09 ATmega128RFA1 A second configuration bit (SLPTR) is used to control frame transmission or sleep and wakeup

Page 258

330 8266A-MCU Wireless-12/09 ATmega128RFA1 22 SPI- Serial Peripheral Interface 22.1 Features The Serial Peripheral Interface (S

Page 259

331 8266A-MCU Wireless-12/09 ATmega128RFA1 Figure 22-1. SPI Block Diagram(1) SPI2XSPI2XDIVIDER/2/4/8/16/32/64/128 Note: 1. Refer to

Page 260

332 8266A-MCU Wireless-12/09 ATmega128RFA1 control logic will sample the incoming signal of the SCK pin. To ensure correct sampling

Page 261

333 8266A-MCU Wireless-12/09 ATmega128RFA1 C Code Example(1) void SPI_MasterInit(void) { /* Set MOSI and SCK output, all others inp

Page 262 - OCnxPCPWM

334 8266A-MCU Wireless-12/09 ATmega128RFA1 C Code Example(1) void SPI_SlaveInit(void) { /* Set MISO output, all others input */

Page 263

335 8266A-MCU Wireless-12/09 ATmega128RFA1 22.3.3 Data Mode There are four combinations of SCK phase and polarity with respe

Page 264 - OCnxPFCPWM

336 8266A-MCU Wireless-12/09 ATmega128RFA1 22.4 Register Description 22.4.1 SPCR – SPI Control Register Bit 7 6 5 4 3 2 1

Page 265

337 8266A-MCU Wireless-12/09 ATmega128RFA1 These two bits control the SCK rate of the device configured as a Master. SPR1 and SPR

Page 266 - 18.11 Register Description

338 8266A-MCU Wireless-12/09 ATmega128RFA1 22.4.3 SPDR – SPI Data Register Bit 7 6 5 4 3 2 1 0 $2E ($4E) SPDR7:0 SPDR R

Page 267

339 8266A-MCU Wireless-12/09 ATmega128RFA1 23 USART 23.1 Features • Full duplex operation (independent serial receive and transmit re

Page 268

34 8266A-MCU Wireless-12/09 ATmega128RFA1 Table 9-2. Interrupt Description in Basic Operating Mode IRQ Vector Number/ Priority (1)

Page 269

340 8266A-MCU Wireless-12/09 ATmega128RFA1 Figure 23-1. USART Block Diagram(1) Note: 1. See "Figure 1-1" on page

Page 270 - TCNT1H7:0 TCNT1H

341 8266A-MCU Wireless-12/09 ATmega128RFA1 Figure 22-2 on page 331 shows a block diagram of the clock generation logic. Figure 23-2.

Page 271 - OCR1AL7:0 OCR1AL

342 8266A-MCU Wireless-12/09 ATmega128RFA1 Operating Mode Equation for Calculating Baud Rate(1) Equation for Calculating UBRR Va

Page 272 - OCR1BL7:0 OCR1BL

343 8266A-MCU Wireless-12/09 ATmega128RFA1 Figure 23-3. Synchronous Mode XCKn Timing The UCPOLn bit UCRSC selects which XCKn clock ed

Page 273 - ICR1H7:0 ICR1H

344 8266A-MCU Wireless-12/09 ATmega128RFA1 The USART Character Size (UCSZn2:0) bits select the number of data bits in

Page 274 - ICR1L7:0 ICR1L

345 8266A-MCU Wireless-12/09 ATmega128RFA1 C Code Example(1) #define FOSC 8000000// Clock Speed #define BAUD 9600 #define (MYUBRR FOS

Page 275

346 8266A-MCU Wireless-12/09 ATmega128RFA1 Assembly Code Example(1) USART_Transmit: ; Wait for empty transmit buffer sbis UCSRnA

Page 276 - NA ($90) COM3A1

347 8266A-MCU Wireless-12/09 ATmega128RFA1 C Code Example(1)(2) void USART_Transmit( unsigned int data ) { /* Wait for empty transmi

Page 277

348 8266A-MCU Wireless-12/09 ATmega128RFA1 23.6.4 Parity Generator The parity generator calculates the parity bit for the serial fr

Page 278

349 8266A-MCU Wireless-12/09 ATmega128RFA1 C Code Example(1) unsigned char USART_Receive( void ) { /* Wait for data to be received *

Page 279

35 8266A-MCU Wireless-12/09 ATmega128RFA1 9.4 Operating Modes 9.4.1 Basic Operating Mode This section summarizes all states to provide

Page 280 - TCNT3L7:0 TCNT3L

350 8266A-MCU Wireless-12/09 ATmega128RFA1 C Code Example(1) unsigned int USART_Receive( void ) { unsigned char status, resh, res

Page 281 - OCR3AL7:0 OCR3AL

351 8266A-MCU Wireless-12/09 ATmega128RFA1 read (as one), and the FEn flag will be one when the stop bit was incorrect (zero). This fl

Page 282 - OCR3CH7:0 OCR3CH

352 8266A-MCU Wireless-12/09 ATmega128RFA1 C Code Example(1) void USART_Flush( void ) { unsigned char dummy; while ( UCSRnA &am

Page 283 - ICR3L7:0 ICR3L

353 8266A-MCU Wireless-12/09 ATmega128RFA1 shows the sampling of the data bits and the parity bit. Each of the samples is given a numb

Page 284

354 8266A-MCU Wireless-12/09 ATmega128RFA1 The following equations can be used to calculate the ratio of the incoming data rate and

Page 285 - NA ($A0) COM4A1

355 8266A-MCU Wireless-12/09 ATmega128RFA1 division of the system frequency to get the baud rate wanted. In this case an

Page 286

356 8266A-MCU Wireless-12/09 ATmega128RFA1 Do not use read-modify-write instructions (SBI and CBI) to set or clear the MPCMn bit. T

Page 287

357 8266A-MCU Wireless-12/09 ATmega128RFA1 • Bit 5 – UDRE0 - USART Data Register Empty The UDRE0 Flag indicates if the transmit buffe

Page 288

358 8266A-MCU Wireless-12/09 ATmega128RFA1 Writing this bit to one enables interrupt on the UDRE0 Flag. A Data Registe

Page 289 - TCNT4L7:0 TCNT4L

359 8266A-MCU Wireless-12/09 ATmega128RFA1 compare it to the UPM0 setting. If a mismatch is detected, the UPE0 Flag in UCSR0A will be

Page 290 - OCR4AL7:0 OCR4AL

36 8266A-MCU Wireless-12/09 ATmega128RFA1 Bit SLPTR is a multifunctional bit (refer to section "Transceiver Pin Register TRXPR

Page 291 - OCR4CH7:0 OCR4CH

360 8266A-MCU Wireless-12/09 ATmega128RFA1 23.10.5 UBRR0H – USART0 Baud Rate Register High Byte Bit 7 6 5 4 3 2 1 0 NA ($

Page 292 - ICR4L7:0 ICR4L

361 8266A-MCU Wireless-12/09 ATmega128RFA1 Receive Data Buffer Register (RXB). For 5-, 6-, or 7-bit characters the upper unused

Page 293

362 8266A-MCU Wireless-12/09 ATmega128RFA1 This bit is set if the next character in the receive buffer had a Parity Error when rece

Page 294 - NA ($120) COM5A1

363 8266A-MCU Wireless-12/09 ATmega128RFA1 The UCSZ12 bits combined with the UCSZ11:0 bit in UCSR1C sets the number of data bits (Char

Page 295

364 8266A-MCU Wireless-12/09 ATmega128RFA1 Table 23-11 USBS1 Register Bits Register Bits Value Description 0x00 1-bit USBS1 0x01

Page 296

365 8266A-MCU Wireless-12/09 ATmega128RFA1 • Bit 3:0 – UBRR11:8 - USART Baud Rate Register These bits represent bits [11:8] of

Page 297

366 8266A-MCU Wireless-12/09 ATmega128RFA1 fOSC = 1.8432 MHz fOSC = 2.0000 MHz fOSC = 3.6864 MHz U2Xn = 0 U2Xn = 1 U2Xn =

Page 298 - TCNT5L7:0 TCNT5L

367 8266A-MCU Wireless-12/09 ATmega128RFA1 Table 23-16. Examples of UBRRn Settings for Commonly Used Oscillator Frequencies (Continued

Page 299 - OCR5BH7:0 OCR5BH

368 8266A-MCU Wireless-12/09 ATmega128RFA1 24 USART in SPI Mode The Universal Synchronous and Asynchronous Serial Receiver a

Page 300 - OCR5CH7:0 OCR5CH

369 8266A-MCU Wireless-12/09 ATmega128RFA1 24.2.1 Clock Generation The Clock Generation logic generates the base clock for the Transmi

Page 301 - ICR5L7:0 ICR5L

37 8266A-MCU Wireless-12/09 ATmega128RFA1 9.4.1.2.3 PLL_ON – PLL State Entering the PLL_ON state from TRX_OFF state first enab

Page 302

370 8266A-MCU Wireless-12/09 ATmega128RFA1 UCPOLn UCPHAn SPI Mode Leading Edge Trailing Edge 1 1 3 Setup (Falling)

Page 303

371 8266A-MCU Wireless-12/09 ATmega128RFA1 Assembly Code Example(1) USART_Init: clr r18 out UBRRnH,r18 out UBRRnL,r18 ; Setting t

Page 304 - 19.3 External Clock Source

372 8266A-MCU Wireless-12/09 ATmega128RFA1 UDRn is moved from the transmit buffer to the shift register when the shift register is

Page 305 - 19.4 Register Description

373 8266A-MCU Wireless-12/09 ATmega128RFA1 24.5.1 Transmitter and Receiver Flags and Interrupts The RXCn, TXCn, and UDREn flags and co

Page 306

374 8266A-MCU Wireless-12/09 ATmega128RFA1 • Bit 5 – UDRE0 - USART Data Register Empty The UDRE0 Flag indicates if the transmit bu

Page 307 - 20.2 Description

375 8266A-MCU Wireless-12/09 ATmega128RFA1 When set to one the LSB of the data word is transmitted first. When set to ze

Page 308 - 20.3 Timing Example

376 8266A-MCU Wireless-12/09 ATmega128RFA1 • Bit 6 – TXCIE1 - TX Complete Interrupt Enable Writing this bit to one enables interru

Page 309 - 21.2 Overview

377 8266A-MCU Wireless-12/09 ATmega128RFA1 25 2-wire Serial Interface 25.1 Features • Simple yet powerful and flexible communication

Page 310

378 8266A-MCU Wireless-12/09 ATmega128RFA1 The Power Reduction TWI bit, PRTWI bit in "PRR0 – Power Reduction Register0&quo

Page 311 - 21.5 Modes of Operation

379 8266A-MCU Wireless-12/09 ATmega128RFA1 Figure 25-3. START, REPEATED START and STOP conditions SDASCLSTART STOPREPEATED STARTSTOP

Page 312

38 8266A-MCU Wireless-12/09 ATmega128RFA1 During the transition to BUSY_TX state, the PLL frequency shifts to the trans

Page 313

380 8266A-MCU Wireless-12/09 ATmega128RFA1 pulling the SDA line low during the ninth SCL cycle. If the Receiver leaves the SDA line

Page 314

381 8266A-MCU Wireless-12/09 ATmega128RFA1 • An algorithm must be implemented allowing only one of the masters to complete the transm

Page 315

382 8266A-MCU Wireless-12/09 ATmega128RFA1 must contain the same number of data packets, otherwise the result of the arbitration is

Page 316 - 21.6 Output Compare Unit

383 8266A-MCU Wireless-12/09 ATmega128RFA1 25.5.1 SCL and SDA Pins These pins interface the AVR TWI with the rest of the MCU system. T

Page 317

384 8266A-MCU Wireless-12/09 ATmega128RFA1 compare addresses even if the AVR MCU is in sleep mode, enabling the MCU to wake up if a

Page 318

385 8266A-MCU Wireless-12/09 ATmega128RFA1 Figure 25-10. Interfacing the Application to the TWI in a Typical Transmission START SLA+W

Page 319

386 8266A-MCU Wireless-12/09 ATmega128RFA1 clears the flag. The TWI will not start any operation as long as the TWINT

Page 320

387 8266A-MCU Wireless-12/09 ATmega128RFA1 Assembly Code Example C Example Comments 4 wait2: in r16,TWCR sbrs r16,TWINT rjmp w

Page 321

388 8266A-MCU Wireless-12/09 ATmega128RFA1 details of the following serial transfer are given in Table 25-3 on page 390 to Table 25

Page 322

389 8266A-MCU Wireless-12/09 ATmega128RFA1 TWCR TWINT TWEA TWSTA TWSTO TWWC TWEN – TWIE Value 1 X 0 0 X 1 0 X This sch

Page 323

39 8266A-MCU Wireless-12/09 ATmega128RFA1 Figure 9-13. Timing of TRX24_RX_START, TRX24_XAH_AMI, TRX24_TX_END and TRX24_RX_END

Page 324

390 8266A-MCU Wireless-12/09 ATmega128RFA1 Table 25-3. Status codes for Master Transmitter Mode Application Software Response To T

Page 325

391 8266A-MCU Wireless-12/09 ATmega128RFA1 Figure 25-13. Data Transfer in Master Receiver Mode Device 1MASTERRECEIVERDevice 2SLAVETRAN

Page 326

392 8266A-MCU Wireless-12/09 ATmega128RFA1 START enables the Master to switch between Slaves, Master Transmitter mode an

Page 327

393 8266A-MCU Wireless-12/09 ATmega128RFA1 Figure 25-14. Formats and States in the Master Receiver Mode S SLA R A DATA A$08$40 $50SLA

Page 328

394 8266A-MCU Wireless-12/09 ATmega128RFA1 The upper 7 bits are the address to which the 2-wire Serial Interface will respond when

Page 329

395 8266A-MCU Wireless-12/09 ATmega128RFA1 0x78 Arbitration lost in SLA+R/W as Master; General call address has been received; ACK h

Page 330 - Functional Description

396 8266A-MCU Wireless-12/09 ATmega128RFA1 0xA0 A STOP condition or repeated START condition has been received while still addres

Page 331

397 8266A-MCU Wireless-12/09 ATmega128RFA1 Figure 25-17. Data Transfer in Slave Transmitter Mode Device 3Device nSDASCL...R1 R2

Page 332

398 8266A-MCU Wireless-12/09 ATmega128RFA1 will then wake up from sleep and the TWI will hold the SCL clock will low

Page 333

399 8266A-MCU Wireless-12/09 ATmega128RFA1 Figure 25-18. Formats and States in the Slave Transmitter Mode S SLA R A DATA A$A8 $B8A$B0

Page 334 - Pin Functionality

4 8266A-MCU Wireless-12/09 ATmega128RFA1 Spectrum Signal (DSSS) processing with spreading and despreading. The device is

Page 335

40 8266A-MCU Wireless-12/09 ATmega128RFA1 During this wake-up procedure the calibration of the filter-tuning network (FTN

Page 336 - 22.4 Register Description

400 8266A-MCU Wireless-12/09 ATmega128RFA1 3. The reading must be performed. 4. The transfer must be finished. Note that data

Page 337

401 8266A-MCU Wireless-12/09 ATmega128RFA1 will lose the arbitration. Losing masters will switch to not addressed Slave mode or wait

Page 338 - SPDR7:0 SPDR

402 8266A-MCU Wireless-12/09 ATmega128RFA1 25.9.2 TWCR – TWI Control Register Bit 7 6 5 4 3 2 1 0 NA ($BC) TWINT TWEA

Page 339

403 8266A-MCU Wireless-12/09 ATmega128RFA1 pins enabling the slew-rate limiters and spike filters. If this bit is written to zero, the

Page 340 - 23.3 Clock Generation

404 8266A-MCU Wireless-12/09 ATmega128RFA1 Register Bits Value Description returned. 0x58 Data byte has been received; NOT ACK h

Page 341

405 8266A-MCU Wireless-12/09 ATmega128RFA1 Register Bits Value Description 0x01 4 0x02 16 0x03 64 25.9.4 TWDR – TWI Data Registe

Page 342

406 8266A-MCU Wireless-12/09 ATmega128RFA1 25.9.6 TWAMR – TWI (Slave) Address Mask Register Bit 7 6 5 4 3 2 1 0 NA ($BD)

Page 343

407 8266A-MCU Wireless-12/09 ATmega128RFA1 26 AC – Analog Comparator The Analog Comparator compares the input values on the p

Page 344 - 23.5 USART Initialization

408 8266A-MCU Wireless-12/09 ATmega128RFA1 ACME ADEN MUX5 MUX2:0 Analog Comparator Negative Input 1 0 0 101 ADC5 1 0 0 1

Page 345

409 8266A-MCU Wireless-12/09 ATmega128RFA1 • Bit 1:0 – ACIS1:0 - Analog Comparator Interrupt Mode Select These bits determine whic

Page 346

41 8266A-MCU Wireless-12/09 ATmega128RFA1 tTR10 = 16 µs after initiating the transmission, the radio transceiver changes into

Page 347

410 8266A-MCU Wireless-12/09 ATmega128RFA1 27 ADC – Analog to Digital Converter 27.1 Features • 10-bit Resolution • Differential

Page 348

411 8266A-MCU Wireless-12/09 ATmega128RFA1 The Power Reduction ADC bit, PRADC (see "PRR0 – Power Reduction Register0" on pag

Page 349

412 8266A-MCU Wireless-12/09 ATmega128RFA1 cause instable operation of the internal reference voltage buffer and will no

Page 350

413 8266A-MCU Wireless-12/09 ATmega128RFA1 27.4 Starting a Conversion A single conversion is started by writing a logical one to the A

Page 351

414 8266A-MCU Wireless-12/09 ATmega128RFA1 frequency to the ADC can be as high as 8 MHz to get a higher sample rate

Page 352

415 8266A-MCU Wireless-12/09 ATmega128RFA1 Parameter Duration in ADC Clock Cycles Gain Amplifier Initialization Time tAINIT 2(ADTHT+

Page 353

416 8266A-MCU Wireless-12/09 ATmega128RFA1 Table 27-3. Conversion Start Delay Channel ADPS Delay from Conversion Start Request to

Page 354

417 8266A-MCU Wireless-12/09 ATmega128RFA1 Figure 27-8. ADC Timing Diagram, Free Running Conversion A D C C lockA D T S [2 :0]A D S C

Page 355

418 8266A-MCU Wireless-12/09 ATmega128RFA1 the MUX4:0 bits need to be modified then a write access to the MUX4:0 bits

Page 356 - 23.10 Register Description

419 8266A-MCU Wireless-12/09 ATmega128RFA1 Figure 27-9. ADC Timing Diagram, Changing MUXn after a Conversion A D C C loc kA D IFA D C

Page 357

42 8266A-MCU Wireless-12/09 ATmega128RFA1 9.4.1.4.5 State Transition Timing Summary The transition numbers correspond to Table

Page 358 - NA ($C2) UMSEL01

420 8266A-MCU Wireless-12/09 ATmega128RFA1 disabled and enabled again for new reference selections. For internal referenc

Page 359

421 8266A-MCU Wireless-12/09 ATmega128RFA1 Figure 27-11. Analog Input Circuitry A D C nIILIIHCS /H = 1 4 p FVA V D D/22 k Signal comp

Page 360

422 8266A-MCU Wireless-12/09 ATmega128RFA1 Figure 27-12. Offset Error Output CodeVREFInput VoltageIdeal ADCActual ADCOffsetError •

Page 361

423 8266A-MCU Wireless-12/09 ATmega128RFA1 Figure 27-14. Integral Non-linearity (INL) Output CodeVREFInput VoltageIdeal ADCActual ADCI

Page 362

424 8266A-MCU Wireless-12/09 ATmega128RFA1 For single ended conversion, the result is REFINVVADC1024⋅= where VIN is the voltage

Page 363

425 8266A-MCU Wireless-12/09 ATmega128RFA1 Table 27-7. Correlation Between Input Voltage and Output Codes VADCn Read Code Correspond

Page 364 - UBRR9 UBRR8 UBRR1H

426 8266A-MCU Wireless-12/09 ATmega128RFA1 8.27213.1/−⋅=°TEMPADCCθ Note that the above equations are only valid in the al

Page 365

427 8266A-MCU Wireless-12/09 ATmega128RFA1 Parameter Register Recommended Setup ADCSRB MUX5 = 1; ADC Clock ADCSRA Select a clock

Page 366

428 8266A-MCU Wireless-12/09 ATmega128RFA1 ADCSRA is set). Note that the MUX5 bit is located in the ADCSRB register. A write access

Page 367

429 8266A-MCU Wireless-12/09 ATmega128RFA1 MUX5:0 Single Ended Input Positive Differential Input Negative Differential Input Gain 000

Page 368 - 24 USART in SPI Mode

43 8266A-MCU Wireless-12/09 ATmega128RFA1 No Symbol Block Time [µs], (typ) Time [µs], (max) Comments 24 tTR24 PLL, TX  RX 32 Ma

Page 369

430 8266A-MCU Wireless-12/09 ATmega128RFA1 MUX5:0 Single Ended Input Positive Differential Input Negative Differential Input Gain

Page 370 - 24.4 Frame Formats

431 8266A-MCU Wireless-12/09 ATmega128RFA1 • Bit 7 – ADEN: ADC Enable Writing this bit to one enables the ADC. The AVDD supply voltag

Page 371

432 8266A-MCU Wireless-12/09 ATmega128RFA1 This register defines the track-and-hold time for sampling the analog input v

Page 372

433 8266A-MCU Wireless-12/09 ATmega128RFA1 • ADC9:0: A/D Conversion Result These bits represent the result from the conversion

Page 373

434 8266A-MCU Wireless-12/09 ATmega128RFA1 • Bit 6:3 – BGCAL_FINE3:0 - Fine Calibration Bits These bits allow the calibration of t

Page 374

435 8266A-MCU Wireless-12/09 ATmega128RFA1 28 JTAG Interface and On-chip Debug System 28.1 Features • JTAG (IEEE std. 1149.1 Complian

Page 375

436 8266A-MCU Wireless-12/09 ATmega128RFA1 Figure 28-1. Block Diagram TAPCONTROLLERTDITDOTCKTMSFLASHMEMORYAVR CPUDIGITALPERIPHERALU

Page 376 - NA ($CA) UDORD1

437 8266A-MCU Wireless-12/09 ATmega128RFA1 Figure 28-2. TAP Controller State Diagram Test-Logic-ResetRun-Test/IdleShift-DRExit1-DRPaus

Page 377

438 8266A-MCU Wireless-12/09 ATmega128RFA1 selects a particular Data Register as path between TDI and TDO and controls the ci

Page 378 - Data Change

439 8266A-MCU Wireless-12/09 ATmega128RFA1 • 2 single program memory breakpoints + 1 program memory breakpoint with mask (“

Page 379

44 8266A-MCU Wireless-12/09 ATmega128RFA1 frame pending subfield in the received acknowledgement frame the transaction status is se

Page 380

440 8266A-MCU Wireless-12/09 ATmega128RFA1 The JTAG programming capability supports: • Flash programming and verifying. • EEPROM

Page 381

441 8266A-MCU Wireless-12/09 ATmega128RFA1 29 IEEE 1149.1 (JTAG) Boundary-scan 29.1 Features • JTAG (IEEE std. 1149.1 compliant) Inte

Page 382 - TWI Unit

442 8266A-MCU Wireless-12/09 ATmega128RFA1 • Reset Register • Boundary-scan Chain 29.3.1 Bypass Register The Bypass Register c

Page 383

443 8266A-MCU Wireless-12/09 ATmega128RFA1 Figure 29-2. Reset Register D QFromTDIClockDR · AVR_RESETTo TDOFrom Other Internal andEx

Page 384 - 25.6 Using the TWI

444 8266A-MCU Wireless-12/09 ATmega128RFA1 The active states are: • Capture-DR: Data in the IDCODE Register is sampled int

Page 385

445 8266A-MCU Wireless-12/09 ATmega128RFA1 When no alternate port function is present, the Input Data - ID - corresponds

Page 386

446 8266A-MCU Wireless-12/09 ATmega128RFA1 Figure 29-4. General Port Pin Schematic Diagram CLKRPxRRxWRxRDxWDxPUDSYNCHRONIZERWDx: WR

Page 387

447 8266A-MCU Wireless-12/09 ATmega128RFA1 29.5.3 Scanning the RSTON Pin For the low-active reset output pin RSTON a boundary-scan cel

Page 388 - 1 X 0 0 X 1 0 X

448 8266A-MCU Wireless-12/09 ATmega128RFA1 • Bit 4 – JTRF - JTAG Reset Flag This bit is set if a reset is being caused b

Page 389

449 8266A-MCU Wireless-12/09 ATmega128RFA1 Table 29-1. ATmega128RFA1 Boundary-Scan Order Bit Number Signal Name Module Bit Number

Page 390

45 8266A-MCU Wireless-12/09 ATmega128RFA1 9.4.2.1 State Control The Extended Operating Mode states RX_AACK and TX_ARET are controlled

Page 391

450 8266A-MCU Wireless-12/09 ATmega128RFA1 30 Boot Loader Support – Read-While-Write Self-Programming The Boot Loader Support p

Page 392

451 8266A-MCU Wireless-12/09 ATmega128RFA1 30.3 Read-While-Write and No Read-While-Write Flash Sections Whether the CPU supports R

Page 393

452 8266A-MCU Wireless-12/09 ATmega128RFA1 programming is completed, the RWWSB must be cleared by software before reading co

Page 394

453 8266A-MCU Wireless-12/09 ATmega128RFA1 30.4 Boot Loader Lock Bits If no Boot Loader capability is needed, the entire Flash is avai

Page 395

454 8266A-MCU Wireless-12/09 ATmega128RFA1 Since the Flash is organized in pages (see "Table 31-7" on page 46

Page 396

455 8266A-MCU Wireless-12/09 ATmega128RFA1 • Fill temporary page buffer, • Perform a Page Write; If only a part of the page needs to

Page 397

456 8266A-MCU Wireless-12/09 ATmega128RFA1 30.6.5 Consideration While Updating BLS Special care must be taken if the user allows th

Page 398

457 8266A-MCU Wireless-12/09 ATmega128RFA1 Bit 7 6 5 4 3 2 1 0 Rd - - BLB12 BLB11 BLB02 BLB01 LB2 LB1 The algorith

Page 399

458 8266A-MCU Wireless-12/09 ATmega128RFA1 30.6.11 Preventing Flash Corruption During periods of VDEVDD<1.8V, the Flash program

Page 400 -

459 8266A-MCU Wireless-12/09 ATmega128RFA1 Assembly Code Example(1) .equ PAGESIZEB=PAGESIZE*2 ;PAGESIZEB is page in BYTES, not words .

Page 401

46 8266A-MCU Wireless-12/09 ATmega128RFA1 o Handling of Pending Data Indicator o Characterize as PAN coordinator o Handling of S

Page 402

460 8266A-MCU Wireless-12/09 ATmega128RFA1 Assembly Code Example(1) ; If RWWSB is set, the RWW section is not ready yet sbrs te

Page 403

461 8266A-MCU Wireless-12/09 ATmega128RFA1 Table 30-6. Explanation of different variables used in Figure 30-3 on page 454 and the mapp

Page 404

462 8266A-MCU Wireless-12/09 ATmega128RFA1 30.7 Register Description 30.7.1 SPMCSR – Store Program Memory Control Register Bit 7

Page 405

463 8266A-MCU Wireless-12/09 ATmega128RFA1 instruction is executed within four clock cycles. The CPU is halted during the

Page 406

464 8266A-MCU Wireless-12/09 ATmega128RFA1 31 Memory Programming 31.1 Program And Data Memory Lock Bits The ATmega128RFA1 provides

Page 407

465 8266A-MCU Wireless-12/09 ATmega128RFA1 Memory Lock Bits Protection Type BLB1 Mode BL12 BL11 1 1 1 No restrictions for SPM o

Page 408 - 26.2 Register Description

466 8266A-MCU Wireless-12/09 ATmega128RFA1 Fuse High Byte Bit No Description Default Value EESAVE 3 EEPROM memory is preserved

Page 409

467 8266A-MCU Wireless-12/09 ATmega128RFA1 The three bytes reside in a separate address space. For the ATmega128RFA1 the s

Page 410 - 27.1 Features

468 8266A-MCU Wireless-12/09 ATmega128RFA1 Figure 31-1. Parallel Programming (1) Note: 1. Unused Pins should be left floating.

Page 411

469 8266A-MCU Wireless-12/09 ATmega128RFA1 Table 31-11. Pin Values Used to Enter Programming Mode Pin Symbol Value PAGEL Prog_enabl

Page 412 - 27.3 ADC Start-Up

47 8266A-MCU Wireless-12/09 ATmega128RFA1 Generally, at nodes, configured as a normal device or PAN coordinator, a frame is not indica

Page 413

470 8266A-MCU Wireless-12/09 ATmega128RFA1 31.7.2 Considerations for Efficient Programming The loaded command and address are retai

Page 414

471 8266A-MCU Wireless-12/09 ATmega128RFA1 C. Load Data Low Byte 1. Set XA1, XA0 to “01”. This enables data loading. 2. Set DATA = D

Page 415

472 8266A-MCU Wireless-12/09 ATmega128RFA1 Figure 31-5. Addressing the Flash which is Organized in Pages (1) PROGRAM MEMORYWORD ADD

Page 416 - Tracking Phase Duration t

473 8266A-MCU Wireless-12/09 ATmega128RFA1 K: Repeat 3 through 5 until the entire buffer is filled. L: Program EEPROM page 1. Set BS2

Page 417

474 8266A-MCU Wireless-12/09 ATmega128RFA1 2. C: Load Data Low Byte. Bit n = “0” programs and bit n = “1” erases the Fuse bit. 3.

Page 418 - Settling Time t

475 8266A-MCU Wireless-12/09 ATmega128RFA1 31.7.12 Reading the Fuse and Lock Bits The algorithm for reading the Fuse and Lock bits is

Page 419

476 8266A-MCU Wireless-12/09 ATmega128RFA1 31.7.15 Parallel Programming Characteristics Figure 31-10. Parallel programming timing i

Page 420 - 097.0)2000/( ⋅+Ω=

477 8266A-MCU Wireless-12/09 ATmega128RFA1 Table 31-14. Parallel Programming Characteristics, VDEVDD = 3.3V ± 10% Symbol Parameter M

Page 421

478 8266A-MCU Wireless-12/09 ATmega128RFA1 Figure 31-13. Serial Programming and Verify (1)(2) Notes: 1. If the device is clo

Page 422 - Output Code

479 8266A-MCU Wireless-12/09 ATmega128RFA1 not, all four bytes of the instruction must be transmitted. If the 0x53 did n

Page 423

48 8266A-MCU Wireless-12/09 ATmega128RFA1 Figure 9-19. Flow Diagram of RX_AACK Reserved FramesTRX_STATE = RX_AACK_ONSHR detectedTRX

Page 424

480 8266A-MCU Wireless-12/09 ATmega128RFA1 Instruction Format (1) Read Fuse Bits $50 $00 $00 data byte out Read Fuse High Bits

Page 425

481 8266A-MCU Wireless-12/09 ATmega128RFA1 31.8.4 Serial Programming Characteristics For characteristics of the Serial Programming mod

Page 426

482 8266A-MCU Wireless-12/09 ATmega128RFA1 Figure 31-16. State Machine Sequence for Changing the Instruction Word Test-Logic-ResetR

Page 427

483 8266A-MCU Wireless-12/09 ATmega128RFA1 • Update-DR: The programming enable signature is compared to the correct value,

Page 428 - NA ($7B) AVDDOK

484 8266A-MCU Wireless-12/09 ATmega128RFA1 • Programming Enable Register • Programming Command Register • Flash Data Byte Regist

Page 429

485 8266A-MCU Wireless-12/09 ATmega128RFA1 Figure 31-18. Programming Command Register TDITDOSTROBESADDRESS/DATAFlash

Page 430

486 8266A-MCU Wireless-12/09 ATmega128RFA1 Instruction TDI Sequence TDO Sequence Notes 4a. Enter EEPROM Write 0100011_00010001

Page 431

487 8266A-MCU Wireless-12/09 ATmega128RFA1 Instruction TDI Sequence TDO Sequence Notes 8a. Enter Fuse/Lock Bit Read 0100011_000001

Page 432

488 8266A-MCU Wireless-12/09 ATmega128RFA1 Figure 31-19. State Machine Sequence for Changing/Reading the Data Word Test-Logic-Reset

Page 433

489 8266A-MCU Wireless-12/09 ATmega128RFA1 During Page Read, the content of the selected Flash byte is captured into the

Page 434

49 8266A-MCU Wireless-12/09 ATmega128RFA1 9.4.2.3.1 Description of RX_AACK Configuration Bits Overview The following table summariz

Page 435

490 8266A-MCU Wireless-12/09 ATmega128RFA1 31.9.15 Performing Chip Erase 1. Enter JTAG instruction PROG_COMMANDS. 2. Start Chip E

Page 436 - 28.3 TAP - Test Access Port

491 8266A-MCU Wireless-12/09 ATmega128RFA1 1. Enter JTAG instruction PROG_COMMANDS. 2. Enable Flash read using programming instructi

Page 437

492 8266A-MCU Wireless-12/09 ATmega128RFA1 5. Poll for Fuse write complete using programming instruction 6d, or wait fo

Page 438

493 8266A-MCU Wireless-12/09 ATmega128RFA1 32 Application Circuits 32.1 Basic Application Schematic A basic application schematic

Page 439

494 8266A-MCU Wireless-12/09 ATmega128RFA1 The crystal (XTAL), the two load capacitors (CX1, CX2), and the internal cir

Page 440 - 28.9 Bibliography

495 8266A-MCU Wireless-12/09 ATmega128RFA1 Figure 32-2. Extended Feature Application schematic 8765432117 18 19 20 21 22 23 2456575859

Page 441

496 8266A-MCU Wireless-12/09 ATmega128RFA1 33 Register Summary Address Name Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0

Page 442 - MSB LSB

497 8266A-MCU Wireless-12/09 ATmega128RFA1 Address Name Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0 Page (0x144) TRX_CTR

Page 443

498 8266A-MCU Wireless-12/09 ATmega128RFA1 Address Name Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0 Page (0xDE) SCSR

Page 444 - 29.5 Boundary-scan Chain

499 8266A-MCU Wireless-12/09 ATmega128RFA1 Address Name Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0 Page (0x92) TCCR3C

Page 445

5 8266A-MCU Wireless-12/09 ATmega128RFA1 trough an SPI serial interface, by a conventional nonvolatile memory programmer, or by on on

Page 446 - Description for Details!

50 8266A-MCU Wireless-12/09 ATmega128RFA1 9.4.2.3.2 Configuration of IEEE Scenarios Normal Device The Table 9-6 below shows a

Page 447

500 8266A-MCU Wireless-12/09 ATmega128RFA1 Address Name Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0 Page ... Reserved

Page 448

501 8266A-MCU Wireless-12/09 ATmega128RFA1 34 Electrical Characteristics 34.1 Absolute Maximum Ratings Note that stresses beyond thos

Page 449

502 8266A-MCU Wireless-12/09 ATmega128RFA1 34.2 Clock Characteristics 34.2.1 Calibrated Internal RC Oscillator Accuracy Table 34-2.

Page 450 - 30.1 Features

503 8266A-MCU Wireless-12/09 ATmega128RFA1 Table 34-23. BODLEVEL Fuse Coding BODLEVEL2:0 Fuses Min VBOD Typ VBOD Max VBOD Units 1

Page 451

504 8266A-MCU Wireless-12/09 ATmega128RFA1 Symbol Parameter Condition Min. Max. Units VIH Input High-voltage 0.7VDEVDD VD

Page 452

505 8266A-MCU Wireless-12/09 ATmega128RFA1 Figure 34-3. SPI timing Requirements (Master Mode) MOSI(Data Output)SCK(CPOL = 1)MISO(Data

Page 453

506 8266A-MCU Wireless-12/09 ATmega128RFA1 Symbol Parameter Condition Min(1) Typ(1) Max(1) Units VREF = 1.6V CLKADC = 200kHz

Page 454

507 8266A-MCU Wireless-12/09 ATmega128RFA1 Symbol Parameter Condition Min(1) Typ(1) Max(1) Units Gain = 10x VREF = 1.6V CLKAD

Page 455

508 8266A-MCU Wireless-12/09 ATmega128RFA1 Symbol Parameter Condition Min. Typ. Max. Units fPSDU PSDU bit rate As specified

Page 456

509 8266A-MCU Wireless-12/09 ATmega128RFA1 Symbol Parameter Condition Min. Typ. Max. Units Receiver sensitivity 250 kb/s

Page 457

51 8266A-MCU Wireless-12/09 ATmega128RFA1 Table 9-7. Configuration of a PAN Coordinator Register Name Register Bits Description SHOR

Page 458

510 8266A-MCU Wireless-12/09 ATmega128RFA1 Symbol Parameter Condition Min. Typ. Max. Units IBUSY_TX Supply current transmit

Page 459

511 8266A-MCU Wireless-12/09 ATmega128RFA1 36 Ordering Information ATmega128RFA1 Speed (MHz) Power Supply Ordering Code Package Pa

Page 460

512 8266A-MCU Wireless-12/09 ATmega128RFA1 37 Packaging Information PI ALL DIMENSIONS ARE IN MILLIMETERS.PACKAGE WARPAGE MAX 0.08

Page 461

513 8266A-MCU Wireless-12/09 ATmega128RFA1 38 Errata 38.1 ATmega128RFA1 revision D (1.2) • Power-Chain turns off when power supply dr

Page 462 - 30.7 Register Description

514 8266A-MCU Wireless-12/09 ATmega128RFA1 38.5.2 JTAG interface reads wrong data If the Power Reduction Register bits associ

Page 463

515 8266A-MCU Wireless-12/09 ATmega128RFA1 Problem Fix/Workaround Set ENDRT=1 in DRTRAM3…0 at the beginning of the firmware program.

Page 464 - 31 Memory Programming

516 8266A-MCU Wireless-12/09 ATmega128RFA1 39 Revision history Please note that the referring page numbers in this sectio

Page 465

517 8266A-MCU Wireless-12/09 ATmega128RFA1 Table of Contents 1 Pin Configurations...

Page 466 - 31.3 Signature Bytes

518 8266A-MCU Wireless-12/09 ATmega128RFA1 9.9 Continuous Transmission Test Mode...

Page 467

519 8266A-MCU Wireless-12/09 ATmega128RFA1 13.1 Resetting the AVR...

Page 468

52 8266A-MCU Wireless-12/09 ATmega128RFA1 Register Name Register Bits Description AACK_FVN_MODE 7:6 Controls the ACK behavior,

Page 469

520 8266A-MCU Wireless-12/09 ATmega128RFA1 18.8 Compare Match Output Unit...

Page 470

521 8266A-MCU Wireless-12/09 ATmega128RFA1 23.6 Data Transmission – The USART Transmitter...

Page 471

522 8266A-MCU Wireless-12/09 ATmega128RFA1 27.10 SRAM DRT Voltage Measurement ...

Page 472

523 8266A-MCU Wireless-12/09 ATmega128RFA1 31.6 Parallel Programming Parameters, Pin Mapping, and Commands ... 467 31.7

Page 473

524 8266A-MCU Wireless-12/09 ATmega128RFA1 Disclaimer Headquarters International Atmel Corporation 2325 Orchard Parkway S

Page 474

53 8266A-MCU Wireless-12/09 ATmega128RFA1 Reception of Reserved Frames Frames with reserved frame types (see section Table 9-1

Page 475

54 8266A-MCU Wireless-12/09 ATmega128RFA1 If AACK_FLT_RES_FT = 1 any frame with a reserved frame type is filtered by the address fi

Page 476 - (LOW BYTE)

55 8266A-MCU Wireless-12/09 ATmega128RFA1 2. At least one address field must be configured. Address match, indicated by the TRX2

Page 477

56 8266A-MCU Wireless-12/09 ATmega128RFA1 Figure 9-10. Example Timing of an RX_AACK Transaction for Slotted Operation RX/TXFrame on

Page 478

57 8266A-MCU Wireless-12/09 ATmega128RFA1 9.4.2.5 TX_ARET_ON – Transmit with Automatic Retry and CSMA-CA Retry Figure 9-12. Flow Diagr

Page 479

58 8266A-MCU Wireless-12/09 ATmega128RFA1 Overview The implemented TX_ARET algorithm is shown in Figure 9-12 on page 57. In TX_ARE

Page 480 - EEPROM Memory

59 8266A-MCU Wireless-12/09 ATmega128RFA1 Value Name Description 5 NO_ACK No acknowledgement frames were received during all retr

Page 481

6 8266A-MCU Wireless-12/09 ATmega128RFA1 3.2.10 Port F (PF7...PF0) Port F is an 8-bit bi-directional I/O port with internal pull-up

Page 482

60 8266A-MCU Wireless-12/09 ATmega128RFA1 Table 9-13. Interrupt Handling in Extended Operating Mode Mode Interrupt Description TR

Page 483

61 8266A-MCU Wireless-12/09 ATmega128RFA1 Register Name Description IEEE_ADDR7 …. IEEE_ADDR0 PAN_ID1 PAN_ID0 SHORT_ADDR1 SHORT_ADDR0

Page 484 - Programming Enable

62 8266A-MCU Wireless-12/09 ATmega128RFA1 On receive the PHR is returned as the first octet during Frame Buffer read

Page 485

63 8266A-MCU Wireless-12/09 ATmega128RFA1 9.5.1.2.2 Frame Control Field (FCF) The FCF consists of 16 bits, and occupies the first two

Page 486

64 8266A-MCU Wireless-12/09 ATmega128RFA1 Bit 6: the “Intra-PAN” subfield indicates that in a frame, where both, the destination an

Page 487

65 8266A-MCU Wireless-12/09 ATmega128RFA1 9.5.1.2.3 Frame Compatibility between IEEE 802.15.4-2003 and IEEE 802.15.4-2006 All unsecure

Page 488

66 8266A-MCU Wireless-12/09 ATmega128RFA1 subfield b3 is set to one (see section "Frame Compatibility between IEEE 8

Page 489

67 8266A-MCU Wireless-12/09 ATmega128RFA1 Example: Consider a 5 octet ACK frame. The MHR field consists of 0100 0000 0000 0000 0101 0

Page 490

68 8266A-MCU Wireless-12/09 ATmega128RFA1 received signal strength is evaluated. The RSSI provides the basis for an ED

Page 491

69 8266A-MCU Wireless-12/09 ATmega128RFA1 For High Data Rate Modes the automated ED measurement duration is reduced to 32

Page 492

7 8266A-MCU Wireless-12/09 ATmega128RFA1 registers are unchanged as long as it fits the target application of a very sma

Page 493

70 8266A-MCU Wireless-12/09 ATmega128RFA1 PRF = -90 + ED [dBm] Figure 9-18. Mapping between values in PHY_ED_LEVEL and Received I

Page 494

71 8266A-MCU Wireless-12/09 ATmega128RFA1 CCA Mode Description 0, 3 Carrier sense with energy above threshold. CCA shall report a b

Page 495

72 8266A-MCU Wireless-12/09 ATmega128RFA1 9.5.5.5 Measurement Time The response time for a manually initiated CCA measurement depen

Page 496 - 33 Register Summary

73 8266A-MCU Wireless-12/09 ATmega128RFA1 can be associated with an expected packet error rate. The PER is the ratio of erroneous rece

Page 497

74 8266A-MCU Wireless-12/09 ATmega128RFA1 Note that the received signal power as indicated by the received signal stren

Page 498

75 8266A-MCU Wireless-12/09 ATmega128RFA1 converter (RX ADC) and generates a digital RSSI signal. The ADC output signal i

Page 499

76 8266A-MCU Wireless-12/09 ATmega128RFA1 9.6.2 Transmitter (TX) 9.6.2.1 Overview The transmitter consists of a digital base band p

Page 500

77 8266A-MCU Wireless-12/09 ATmega128RFA1 Figure 9-22. TX Power Ramping 0 6 8 10SLPTRTR X _STA TE PLL_ON2 12 14 16 18Length [µ s]PA b

Page 501

78 8266A-MCU Wireless-12/09 ATmega128RFA1 Alternatively Dynamic Frame Buffer Protection can be used to protect received frames agai

Page 502 - 34.2 Clock Characteristics

79 8266A-MCU Wireless-12/09 ATmega128RFA1 The PHR and the PSDU need to be stored in the Frame Buffer for frame transmission. The PHR

Page 503

8 8266A-MCU Wireless-12/09 ATmega128RFA1 • over 10 years at 85°C • TBD years at 25°C.

Page 504 - Figure 34-2

80 8266A-MCU Wireless-12/09 ATmega128RFA1 The value BATMON_OK should be read out to verify the current supply voltage value after s

Page 505

81 8266A-MCU Wireless-12/09 ATmega128RFA1 The following figure shows all parasitic capacitances, such as PCB stray capacitances and th

Page 506 - Gain = 200x

82 8266A-MCU Wireless-12/09 ATmega128RFA1 Figure 9-26. Setup for Using an External Frequency Reference XTAL2XTAL1IC internalPCB16 M

Page 507

83 8266A-MCU Wireless-12/09 ATmega128RFA1 9.6.6.4 Calibration Loops Due to temperature, supply voltage and part-to-part variations of

Page 508

84 8266A-MCU Wireless-12/09 ATmega128RFA1 9.7.1 Frame Receive Procedure A frame reception comprises of two actions: The PHY listens

Page 509

85 8266A-MCU Wireless-12/09 ATmega128RFA1 command TX_START to register TRX_STATE after a Frame Buffer write access and while

Page 510 - 35 Typical Characteristics

86 8266A-MCU Wireless-12/09 ATmega128RFA1 • Generate random values for AES key generation (see "Security Module (AES)&

Page 511

87 8266A-MCU Wireless-12/09 ATmega128RFA1 Figure 9-30. High Data Rate Frame Structure 250 kb/s0 time [µs]192SFDPHR832 1472 2752500 kb/

Page 512 - 37 Packaging Information

88 8266A-MCU Wireless-12/09 ATmega128RFA1 9.8.2.5 High Data Rate Mode Options Receiver Sensitivity Control The different data ra

Page 513

89 8266A-MCU Wireless-12/09 ATmega128RFA1 Antenna Diversity uses two antennas to switch to the most reliable RF signal path. This is d

Page 514

9 8266A-MCU Wireless-12/09 ATmega128RFA1 7 AVR CPU Core 7.1 Introduction This section discusses the AVR core architecture in general.

Page 515

90 8266A-MCU Wireless-12/09 ATmega128RFA1 If the radio transceiver is not in a receive or transmit state, it is recommended to disa

Page 516 - 39 Revision history

91 8266A-MCU Wireless-12/09 ATmega128RFA1 Figure 9-34. TX Power Ramping Control for RF Front-Ends 0 6 8 10TRX_STA TESLPTRPLL_O N2 12 1

Page 517

92 8266A-MCU Wireless-12/09 ATmega128RFA1 Protection prevents that a new valid frame passes to the Frame Buffer until the buffer pr

Page 518

93 8266A-MCU Wireless-12/09 ATmega128RFA1 Step Description Description 2 AES configuration Select AES mode: ECB or CBC Select encr

Page 519

94 8266A-MCU Wireless-12/09 ATmega128RFA1 A 16-folded read access to registers AES_KEY returns the last round key of t

Page 520

95 8266A-MCU Wireless-12/09 ATmega128RFA1 key is the content of the key address space stored after running one full encr

Page 521

96 8266A-MCU Wireless-12/09 ATmega128RFA1 The status of the security processing is indicated by register AES_STATUS. Aft

Page 522

97 8266A-MCU Wireless-12/09 ATmega128RFA1 The transmission is started by enabling the PLL (TRX_CMD = PLL_ON) and writing the TX_START

Page 523

98 8266A-MCU Wireless-12/09 ATmega128RFA1 To measure CW signals it is necessary to write either 0x00 or 0xFF to the

Page 524

99 8266A-MCU Wireless-12/09 ATmega128RFA1 ISM - Industrial, scientific, and medical LDO - Low-drop output LNA - Low-noise

Comments to this Manuals

No comments