Atmel AT85DVK-07 Specifications

Browse online or download Specifications for Networking Atmel AT85DVK-07. Atmel AT85DVK-07 Specifications User Manual

  • Download
  • Add to my manuals
  • Print
  • Page
    / 263
  • Table of contents
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 0
1
7632A–MP3–03/06
Features
Audio Processor
Proprietary Digital Signal Processor
MP3 (Full MPEG I/II-Layer 3) Decoder
(1)
Windows Media
®
Audio (WMA) Decoder
(1)
OGG (Vorbis) Decoder
(2)
WAV PCM Decoder/Encoder
ADPCM Decoder/Encoder (G726: 40, 32, 24, 16 Kbps)
Audio Codec
16-bit Stereo D/A Converters
(3)
Headphone Amplifier with Analog Volume Control
(3)
Microphone Pre-Amplifier with Bias Control
16-bit Mono A/D Converter: Microphone or Line Inputs Recording
Stereo Lines Input for FM Playback or Mono Recording
Baseband Sound Processor with Digital Volume Control, Bass, Medium, and
Treble Control, Bass Boost and Virtual Surround Effects
Digital Audio DAC Interface
–PCM / I
2
S Format Compatible
USB Rev 2.0 Controller
High Speed Mode (480 Mbps)
Full Speed Mode (12 Mbps)
On The Go Full Speed Mode
Data Flow Controller
16-bit Multimedia Bus with 2 DMA Channels for high speed transfer with USB
Nand Flash Controller
Up to four Memories with Page Size: 512B, 1KB, 2KB or 4KB
Built-in ECC and Hardware Write Protection
xD-Picture Card™ and SmartMedia
®
Card Interface
MultiMediaCard
®
Controller
MultiMediaCard 1-bit / 4-bits Modes (V4.0 compatible)
Secure Digital Card 1-bit / 4-bit Modes
Man Machine Interface
Glueless Generic LCD Interface
Keyboard Interface
Remote Controlled / Streaming
PSI I80 Slave Interface (EBI Compatible) up to 6Mbyte/s
SPI Master and Slave Modes
Full Duplex UART with Baud Rate Generator up to 6 Mbit/s (Rx, Tx, RTS, CTS)
Control Processor
Enhanced 8-bit MCU C51 Core (F
MAX
= 24 MHz)
64K Bytes of Internal RAM for application code and data
Boot ROM Memory: Secured Nand Flash Boot Strap (standard), USB Boot Loader
Two 16-bit Timers/Counters
Hardware Watchdog Timer
Power Management
1.8V 40 mA Single AAA or AA Battery Powered
(4)
Direct USB V
BUS
Supply
3V - 50 mA Regulator Output
1.8V - 50 mA Regulator Output
Battery Voltage Monitoring
Power-on Reset
Software Programmable MCU Clock
Idle, Power-Down, Power-Off Modes
On Chip Debug
Operating Conditions
Supply 0.9V to 5V
25 mA Typical Operating at 25°C (estimation to be confirmed)
Temperature Range: -40°C to +85°C
Single-Chip
Digital Audio
Decoder -
Encoder with
USB 2.0
Interface
AT85C51SND3B1
AT85C51SND3B2
AT85C51SND3B3
Preliminary
Page view 0
1 2 3 4 5 6 ... 262 263

Summary of Contents

Page 1 - Preliminary

1 7632A–MP3–03/06Features• Audio Processor– Proprietary Digital Signal Processor– MP3 (Full MPEG I/II-Layer 3) Decoder (1)– Windows Media® Audio (WMA

Page 2

10AT85C51SND3Bx 7632A–MP3–03/06USB Controller Table 7. USB Controller Signal DescriptionNFCLE OCommand Latch Enable SignalAsserted high during comma

Page 3

100AT85C51SND3Bx 7632A–MP3–03/06USB Software Operating modesDepending on the USB operating mode, the software should perform some of the follow-ing o

Page 4

101 AT85C51SND3Bx7632A–MP3–03/06USB Device Operating modesIntroduction The USB device controller supports high speed and full speed data transfers. I

Page 5

102AT85C51SND3Bx 7632A–MP3–03/06At the end of the reset process (Full or High), the end of reset interrupt (EORSTI) is gen-erated. Then the CPU shoul

Page 6

103 AT85C51SND3Bx7632A–MP3–03/06– Clear DFCRDY to freeze the DFC transfer,– If the CPU EPNUM has to be changed: EPNUMS cleared, EPNUM = endpoint0– Re

Page 7

104AT85C51SND3Bx 7632A–MP3–03/06• the host sends a SETUP command (SET_ADDRESS(addr)),• the firmware records that address in UADD, but keep ADDEN clea

Page 8

105 AT85C51SND3Bx7632A–MP3–03/06Figure 61. Detach a device in Full-speed:Remote Wake-Up The “Remote Wake-up” (or “upstream resume”) request is the o

Page 9

106AT85C51SND3Bx 7632A–MP3–03/06This function is compliant with the Chapter 8 test from PMTC that send extra status for a GET_DESCRIPTOR. The firmwar

Page 10 - AT85C51SND3Bx

107 AT85C51SND3Bx7632A–MP3–03/06Control Read The next figure shows a control read transaction. The USB controller has to manage the simultaneous writ

Page 11

108AT85C51SND3Bx 7632A–MP3–03/06banks, clearing the FIFOCON bit will switch to the next bank. The RXOUTI and FIFO-CON bits are then updated by hardwa

Page 12

109 AT85C51SND3Bx7632A–MP3–03/06• The CPU can read the data from the current bank (“N” read of UEDATX),• The CPU can free the bank by clearing FIFOCO

Page 13

11 AT85C51SND3Bx7632A–MP3–03/06Audio Processor Table 8. I2S Output DescriptionTable 9. Audio Codec DescriptionUID IUSB OTG Identifier InputThis pin

Page 14

110AT85C51SND3Bx 7632A–MP3–03/06writes into the FIFO and clears the FIFOCON bit to allow the USB controller to send the data. If the IN Endpoint is c

Page 15

111 AT85C51SND3Bx7632A–MP3–03/06• The CPU can free the bank by clearing FIFOCON when all the data are written, that is:– after “N” write into UEDATX–

Page 16

112AT85C51SND3Bx 7632A–MP3–03/06Table 111. Abort flowIsochronous Mode For Isochronous IN endpoints, it is possible to automatically switch the banks

Page 17

113 AT85C51SND3Bx7632A–MP3–03/06Interrupts Figure 62 shows all the device interrupts sources while Figure 63 details the endpoint interrupt sources.F

Page 18

114AT85C51SND3Bx 7632A–MP3–03/06Figure 63. USB Device Controller Endpoint Interrupt SystemProcessing interrupts are generated when the following eve

Page 19

115 AT85C51SND3Bx7632A–MP3–03/06RegistersUSB Device General RegistersReset Value = 0000 0001bTable 112. UDCON RegisterUDCON (1.D9h) – USB Device Gen

Page 20

116AT85C51SND3Bx 7632A–MP3–03/06Reset Value = 0000 0000b3 EORSTIEnd Of Reset Interrupt FlagSet by hardware when an “End Of Reset” has been detected b

Page 21

117 AT85C51SND3Bx7632A–MP3–03/06Reset Value = 0000 0000bReset Value = 0000 0000bReset Value = 0000 0000b0 SUSPESuspend Interrupt Enable BitSet to ena

Page 22

118AT85C51SND3Bx 7632A–MP3–03/06Reset Value = 0000 0000bReset Value = 0000 0000bUSB Device Endpoint RegistersReset Value = 0000 0000bBitNumberBitMnem

Page 23

119 AT85C51SND3Bx7632A–MP3–03/06Reset Value = 0000 0000bReset Value = 0000 0000bBit NumberBit MnemonicDescription7 -ReservedThe value read from these

Page 24

12AT85C51SND3Bx 7632A–MP3–03/06Parallel Slave Interface Table 10. PSI Signal DescriptionSerial Interfaces Table 11. SPI Controller Signal Descripti

Page 25

120AT85C51SND3Bx 7632A–MP3–03/06Reset Value = 0000 0000bTable 122. UECFG0X RegisterUECFG0X (1.CCh) – USB Endpoint Configuration 1 Register7 6 5 4 3

Page 26

121 AT85C51SND3Bx7632A–MP3–03/06Reset Value = 0000 0000b3-2 EPBK1:0Endpoint Bank BitsSet this field according to the endpoint size: 00b: Single bank

Page 27

122AT85C51SND3Bx 7632A–MP3–03/06Reset Value = 0000 0000bReset Value = 0000 0000b1-0NBUSYBK1:0Busy Bank FlagSet by hardware to indicate the number of

Page 28

123 AT85C51SND3Bx7632A–MP3–03/06Table 126. UEINTX Register (bit addressable)UEINTX (1.C8h) – USB Endpoint Interrupt Register7 6 5 4 3 2 1 0FIFOCON N

Page 29

124AT85C51SND3Bx 7632A–MP3–03/06Reset Value = 0000 0000bReset Value = 0000 0000b1 STALLIStall Interrupt FlagSet by hardware to signal that a STALL ha

Page 30

125 AT85C51SND3Bx7632A–MP3–03/06Reset Value = 0000 0000bReset Value = 0000 0000bReset Value = 0000 0000bTable 128. UEDATX RegisterUEDATX (1.D3h) – U

Page 31

126AT85C51SND3Bx 7632A–MP3–03/06Reset Value = 0000 0000b.Table 131. UEINT RegisterUEINT (1.D6h) – USB Endpoint Interrupt Register7 6 5 4 3 2 1 0- EP

Page 32

127 AT85C51SND3Bx7632A–MP3–03/06USB Host Operating ModesPipe Description For the USB Host controller, the term of Pipe is used instead of Endpoint fo

Page 33

128AT85C51SND3Bx 7632A–MP3–03/06The Host controller enters in Suspend state when the USB bus is in Suspend state, i.e. when the Host controller doesn

Page 34

129 AT85C51SND3Bx7632A–MP3–03/06Pipe Configuration The following flow must be respected in order to activate a Pipe:Figure 66. Pipe activation flow:

Page 35

13 AT85C51SND3Bx7632A–MP3–03/06MMI Interface Table 13. Keypad Controller Signal DescriptionTable 14. LCD Interface Signal DescriptionPower Manageme

Page 36

130AT85C51SND3Bx 7632A–MP3–03/06USB Reset The USB controller sends a USB Reset when the firmware set the RESET bit. The RSTI bit is set by hardware w

Page 37

131 AT85C51SND3Bx7632A–MP3–03/06The firmware has to change the Token for each phase.The initial data toggle is set for the corresponding token (ONLY

Page 38

132AT85C51SND3Bx 7632A–MP3–03/06“Manual” Mode The TXOUT bit is set by hardware when the current bank becomes free. This triggers an interrupt if the

Page 39

133 AT85C51SND3Bx7632A–MP3–03/06“Autoswitch” Mode In this mode, the clear of the FIFOCON bit is performed automatically by hardware each time the Pip

Page 40

134AT85C51SND3Bx 7632A–MP3–03/06“Autoswitch” Mode In this mode, the clear of the FIFOCON bit is performed automatically by hardware each time the Pip

Page 41

135 AT85C51SND3Bx7632A–MP3–03/06Figure 68. USB Host Controller Pipe Interrupt SystemFLERREUPIENX.7TXOUTIUPINTX.2TXOUTEUPIENX.2TXSTPIUPINTX.3TXSTPEUP

Page 42

136AT85C51SND3Bx 7632A–MP3–03/06RegistersGeneral USB Host RegistersReset Value = 0000 0000bTable 132. UHCON RegisterUHCON (1.D9h) – USB Host Genera

Page 43

137 AT85C51SND3Bx7632A–MP3–03/06Reset Value = 0000 0000b4 RXRSMIUpstream Resume Received InterruptSet by hardware when an Upstream Resume has been re

Page 44

138AT85C51SND3Bx 7632A–MP3–03/06Reset Value = 0000 0000bReset Value = 0000 0000bReset Value = 0000 0000b0 DCONNEDevice Connection Interrupt EnableSet

Page 45

139 AT85C51SND3Bx7632A–MP3–03/06Reset Value = 0000 0000bReset Value = 0000 0000bUSB Host Pipe RegistersReset Value = 0000 0000bTable 137. UHFNUML R

Page 46

14AT85C51SND3Bx 7632A–MP3–03/06OCD Interface Table 16. OCD Signal DescriptionBVSS GNDBattery GroundConnect this pin to the negative pin of the batte

Page 47

140AT85C51SND3Bx 7632A–MP3–03/06Reset Value = 0000 0000bTable 140. UPRST RegisterUPRST (1.CAh) – USB Host Pipe Reset Register7 6 5 4 3 2 1 0- P6RST

Page 48

141 AT85C51SND3Bx7632A–MP3–03/06Reset Value = 0000 0000bReset Value = 0000 0000b5 INMODEIN Request modeSet this bit to allow the USB controller to pe

Page 49

142AT85C51SND3Bx 7632A–MP3–03/06Reset Value = 0000 0000bReset Value = 0000 0000bTable 143. UPCFG1X RegisterUPCFG1X (1.CDh) – USB Pipe Configuration

Page 50

143 AT85C51SND3Bx7632A–MP3–03/06Reset Value = 0000 0000bTable 145. UPSTAX RegisterUPSTAX (1.CEh) – USB Pipe Status Register7 6 5 4 3 2 1 0CFGOK OVER

Page 51

144AT85C51SND3Bx 7632A–MP3–03/06Reset Value = 0000 0000bReset Value = 0000 0000bTable 146. UPINRQX RegisterUPINRQX (1.DFh) – USB Pipe IN Number Of R

Page 52

145 AT85C51SND3Bx7632A–MP3–03/06Table 148. UPINTX RegisterUPINTX (1.C8h) – USB Pipe Interrupt Register7 6 5 4 3 2 1 0FIFOCON NAKEDI RWAL PERRI TXSTP

Page 53

146AT85C51SND3Bx 7632A–MP3–03/06Reset Value = 0000 0000bReset Value = 0000 0000b0 RXINIIN Data receivedSet by hardware when a new USB message is stor

Page 54

147 AT85C51SND3Bx7632A–MP3–03/06Reset Value = 0000 0000bReset Value = 0000 0000bReset Value = 0000 0000bBit NumberBit MnemonicDescription7-0 PDAT7:0P

Page 55

148AT85C51SND3Bx 7632A–MP3–03/06Reset Value = 0000 0000bTable 153. UPINT RegisterUPINT (1.D6h) – USB Pipe IN Number Of Request Register7 6 5 4 3 2 1

Page 56

149 AT85C51SND3Bx7632A–MP3–03/06Audio Controller The Audio Controller embedded in AT85C51SND3Bx is based on four functional blocks detailed in the fo

Page 57

15 AT85C51SND3Bx7632A–MP3–03/06Internal Pin Structure Table 17. Detailed Internal Pin StructureCircuit(1)Type PinsInput/Output RSTInput/OutputP0.7:0

Page 58

150AT85C51SND3Bx 7632A–MP3–03/06Figure 71. Audio Processor Block DiagramAudio Buffer The audio buffer receives the audio data flow coming from DFC o

Page 59

151 AT85C51SND3Bx7632A–MP3–03/06In order to avoid any spurious interrupts on the CPU side when a data transfer with the data flow controller is estab

Page 60

152AT85C51SND3Bx 7632A–MP3–03/06Digital Volume Control The digital volume is controlled separately on right and left channel by setting the DVR4:0 an

Page 61

153 AT85C51SND3Bx7632A–MP3–03/06Mixing Mode A mixing mode can be established by setting MIXEN bit in AUCON. It consists in mixing the ADC output comi

Page 62

154AT85C51SND3Bx 7632A–MP3–03/06Audio Codec The audio codec is controlled by four registers as detailed in Figure 74: Figure 74. Audio Codec Block D

Page 63

155 AT85C51SND3Bx7632A–MP3–03/06Table 157. Audio Codec Output GainOutput Drive Control Output buffers can operate in two modes depending on the powe

Page 64

156AT85C51SND3Bx 7632A–MP3–03/06Line Inputs Preamplifier Gain In AT85C51SND3B2 & AT85C51SND3B3, when Line Inputs are selected as output source (e

Page 65

157 AT85C51SND3Bx7632A–MP3–03/06Figure 75. Audio DAC Interface Block DiagramClock Controller As soon as audio DAC interface is enabled by setting AD

Page 66

158AT85C51SND3Bx 7632A–MP3–03/06Figure 77. Audio Output FormatRegistersDSELDCLKDDATMSBI2S Format with DSIZE = 0 and JUST4:0 = 00001.LSB B14 MSBLSB B

Page 67

159 AT85C51SND3Bx7632A–MP3–03/06Reset Value = 0000 0000bReset Value = 0000 0000b2-1 -ReservedThe value read from these bits is always 0. Do not set t

Page 68

16AT85C51SND3Bx 7632A–MP3–03/06OutputSDCLKSCKNFCE3:0NFCLENFALENFWENFRENFWPSMCEDSELDDATDCLKOCLKLWR/LELA0/LRSLRD/LRWLCSUVCONTXDInput/OutputDPFDMFInput/

Page 69

160AT85C51SND3Bx 7632A–MP3–03/06Reset Value = 0000 0000bReset Value = 0000 0000bReset Value = 0000 0000b1 APLOADAudio Processor Load Enable BitSet to

Page 70

161 AT85C51SND3Bx7632A–MP3–03/06Reset Value = 0000 0000bReset Value = 0000 0000bReset Value = 0000 0000bTable 170. APIEN RegisterAPIEN (1.E9h) – Aud

Page 71

162AT85C51SND3Bx 7632A–MP3–03/06Reset Value = 0000 0000bReset Value = 0000 0000bTable 173. APTIM2 RegisterAPTIM2 (2.C9h) – Audio Processor Timer Reg

Page 72

163 AT85C51SND3Bx7632A–MP3–03/06Reset Value = 0000 0000bTable 176. APELEV Register APELEV (2.F7h) - Audio Processor Equalizer Level Status Register7

Page 73

164AT85C51SND3Bx 7632A–MP3–03/06Reset Value = 0000 0000bReset Value = 0000 0000bReset Value = 0000 0000b0AOEN-AT85C51SND3B2 and AT85C51SND3B3: Audio

Page 74

165 AT85C51SND3Bx7632A–MP3–03/06Reset Value = 0000 0000bReset Value = 0000 0000bTable 180. ACOLG Register (AT85C51SND3B2 and AT85C51SND3B3 only)ACOL

Page 75

166AT85C51SND3Bx 7632A–MP3–03/06Reset Value = 0000 0000bReset Value = 0000 1000bReset Value = 0000 0000bReset Value = 0000 0000b1-2 OVERS1:0Audio Ove

Page 76

167 AT85C51SND3Bx7632A–MP3–03/06Reset Value = 0000 0000bReset Value = 0000 0000bTable 186. ASSTA1 RegisterASSTA1 (2.E3h) – Audio Stream Status Regis

Page 77

168AT85C51SND3Bx 7632A–MP3–03/06Nand Flash ControllerThe AT85C51SND3Bx implement a hardware Nand Flash Controller (NFC) embedding the following featu

Page 78

169 AT85C51SND3Bx7632A–MP3–03/06Figure 79. Nand Flash ConnectionClock Unit The NFC clock is generated based on the clock generator as detailed in Se

Page 79

17 AT85C51SND3Bx7632A–MP3–03/06Notes: 1. For information on resistor value, input/output levels, and drive capability, refer to Section “DC Character

Page 80

170AT85C51SND3Bx 7632A–MP3–03/06Reset Value = 0000 0000bReset Value = 0001 1110bTable 189. NFPGCFG / SMPGCFG RegistersNFPGCFG / SMPGCFG – NF / SMC D

Page 81

171 AT85C51SND3Bx7632A–MP3–03/06Reset Value = 0000 0000bSpecific Action As soon as the NFC is configured, the NFC is ‘idle’, i.e. ready for operation

Page 82

172AT85C51SND3Bx 7632A–MP3–03/06Table 193. Device Selection Allowed Configuration“Read” Session A “read” session is launched and the DFC flow contro

Page 83

173 AT85C51SND3Bx7632A–MP3–03/06Note that it is not possible to reset A9:8 after each command (write in NFCMD): the device status read command is use

Page 84

174AT85C51SND3Bx 7632A–MP3–03/06Data Reading/Writing The NFDAT and NFDATF registers allow reading or writing of a byte without the use of the DFC as

Page 85

175 AT85C51SND3Bx7632A–MP3–03/06Assembly code: mov #, direct• A read of NFDAT returns to the CPU the byte contained in that register, but does not la

Page 86

176AT85C51SND3Bx 7632A–MP3–03/06Figure 80. Nand Flash Read ExampleLegend:•“ifc CPU” illustrates the commands given by the CPU to the NFC.• “auto” il

Page 87

177 AT85C51SND3Bx7632A–MP3–03/06Table 195. Spare Zone ContentThe bytes which are not managed by the NFC are written to FFh.Write Session The spare z

Page 88

178AT85C51SND3Bx 7632A–MP3–03/06Spare Zone Mode 1 The spare zone is not managed by the NFC. The data zone is contiguous.The user sends the commands t

Page 89

179 AT85C51SND3Bx7632A–MP3–03/06• read the ECC FIFO, (keeping the ECCs in memory), re-initialize it, resume the data transfer, and to write all the E

Page 90

18AT85C51SND3Bx 7632A–MP3–03/06Power Management The Power Management implements all the internal power circuitry (regulators, links…) as well as powe

Page 91

180AT85C51SND3Bx 7632A–MP3–03/06Write Protection The NFC provides a hardware mechanism to protect full or part of the memory against any spurious wri

Page 92

181 AT85C51SND3Bx7632A–MP3–03/06Figure 81. Nand Flash Write Protection SchemeSince the NFWP signal state is part of the device status, the user can

Page 93

182AT85C51SND3Bx 7632A–MP3–03/06Card UnitEnable Smartmedia or XD card management is enabled by setting SMCEN bit in SCFG1 regis-ter as detailed in Se

Page 94

183 AT85C51SND3Bx7632A–MP3–03/06Card Lock Input As shown in Figure 83 the SMLCK (SMC/XD Lock) input implements an internal pull-up, in order to provi

Page 95

184AT85C51SND3Bx 7632A–MP3–03/06• or illegal operation (ILGLI)– Attempt to access a NF device which is not declared (e.g. DEV= 4 while NUMDEV= 2)– Wr

Page 96

185 AT85C51SND3Bx7632A–MP3–03/06Reset Value = 0000 0000bReset Value = 0000 0000bTable 204. NFCON RegisterNFCON (1.9Bh) – Nand Flash Controller Contr

Page 97

186AT85C51SND3Bx 7632A–MP3–03/06Reset Value = 0000 0000bA read of that register returns an unexpected value.Reset Value = 0000 0000bReset Value = 000

Page 98

187 AT85C51SND3Bx7632A–MP3–03/06Reset Value = 0000 0000bReset Value = 0000 0000bTable 210. NFDAT RegisterNFDAT (1.A2h) – Nand-Flash Controller Data

Page 99

188AT85C51SND3Bx 7632A–MP3–03/06Reset Value = 0000 0000bReset Value = 0000 0000bReset Value = 0000 0000b0 NFRUNRunning FlagSet by hardware to signal

Page 100

189 AT85C51SND3Bx7632A–MP3–03/06Reset Value = 0000 0000bReset Value = 0000 0000bTable 215. NFIEN RegisterNFIEN (1.A6h) – Nand Flash Controller Inter

Page 101 - AT85C51SND3Bx

19 AT85C51SND3Bx7632A–MP3–03/06Schematic Figure 6. Regulator ConnectionNote: Depending on power supply scheme, CLV may replace CDC capacitor (see Fi

Page 102

190AT85C51SND3Bx 7632A–MP3–03/06Reset Value = 0000 0000bReset Value = 0000 0000bTable 217. NFBPH RegisterNFUDAT (1.94h) – Nand Flash Controller Byte

Page 103

191 AT85C51SND3Bx7632A–MP3–03/06MMC/SD Controller The AT85C51SND3Bx embed a MMC/SD controller allowing connecting of MMC and SD cards in 1-bit or 4-b

Page 104

192AT85C51SND3Bx 7632A–MP3–03/06tion from the card through the SDCMD line. These channels are detailed in the following sections.Figure 87. Command

Page 105

193 AT85C51SND3Bx7632A–MP3–03/06Figure 88. Command Transmission FlowCommand Receiver The end of the response reception is signalled by the EORI flag

Page 106

194AT85C51SND3Bx 7632A–MP3–03/06Data Line Controller As shown in Figure 89, the data line controller is based on a 16-Byte FIFO used both by the data

Page 107

195 AT85C51SND3Bx7632A–MP3–03/06Data Configuration Before sending or receiving any data, the data line controller must be configured accord-ing to th

Page 108

196AT85C51SND3Bx 7632A–MP3–03/06Data Transmission Transmission is enabled by setting DATEN bit in MMCON1 register. FIFO must be filled after this fla

Page 109

197 AT85C51SND3Bx7632A–MP3–03/06Figure 91. Data Stream Transmission FlowsSendSTOP CommandData Stream TransmissionFIFO Fillingwrite 16 data to MMDATF

Page 110

198AT85C51SND3Bx 7632A–MP3–03/06Figure 92. Data Block Transmission FlowsData ReceiverConfiguration To receive data from the card the data controller

Page 111

199 AT85C51SND3Bx7632A–MP3–03/06from such situation. In case of time-out, the data controller and its internal state machine may be reset by setting

Page 112

2AT85C51SND3Bx 7632A–MP3–03/06• Packages– LQFP100, BGA100, DiceNotes: 1. See Ordering Information2. Future product3. AT85C51SND3B2 & AT85C51SND3B

Page 113

20AT85C51SND3Bx 7632A–MP3–03/06Battery Voltage Monitor The battery voltage monitor is a 5-bit / 50 mV resolution A to D converter with fixed con-vers

Page 114

200AT85C51SND3Bx 7632A–MP3–03/06Figure 94. Data Block Reception FlowsCard ManagementCard Detect Input As shown in Figure 95 the SDINS (MMC/SD Card D

Page 115

201 AT85C51SND3Bx7632A–MP3–03/06Figure 96. SD Card Write Protection Input Block DiagramInterrupt As shown in Figure 97, the MMC controller implement

Page 116

202AT85C51SND3Bx 7632A–MP3–03/06RegistersReset Value = 0000 0010bTable 221. MMCON0 RegisterMMCON0 (1.B1h) – MMC Control Register 07 6 5 4 3 2 1 0- D

Page 117

203 AT85C51SND3Bx7632A–MP3–03/06Reset Value = 0000 0000bReset Value = 0000 0000b2 DATENData Transfer Enable BitSet to enable data transmission or rec

Page 118

204AT85C51SND3Bx 7632A–MP3–03/06Reset Value = 0000 0000bReset Value = XX00 0000b, depends wether a card is present in the socket or not and if it is

Page 119

205 AT85C51SND3Bx7632A–MP3–03/06Reset Value = 0000 0000bTable 226. MMINT RegisterMMINT (1.BEh Read Only) – MMC Interrupt Register7 6 5 4 3 2 1 0CDET

Page 120

206AT85C51SND3Bx 7632A–MP3–03/06Reset Value = 1111 1110bReset Value = 1111 1111bReset Value = 1111 1111b6 EORMEnd Of Response Interrupt Mask BitSet t

Page 121

207 AT85C51SND3Bx7632A–MP3–03/06Parallel Slave InterfaceThe AT85C51SND3Bx implement a Parallel Slave Interface (PSI) allowing parallel con-nection wi

Page 122

208AT85C51SND3Bx 7632A–MP3–03/06PSI Addressing The AT85C51SND3Bx are accessible by a host in read or write at two different address locations by sett

Page 123

209 AT85C51SND3Bx7632A–MP3–03/06Figure 102. Write Data Sampling Configuration“SA0= H” Mode The “SA0= H” mode is particularly fitting control managem

Page 124

21 AT85C51SND3Bx7632A–MP3–03/06Idle Mode Idle mode is a power reduction mode that reduces the power consumption. In this mode, program execution halt

Page 125

210AT85C51SND3Bx 7632A–MP3–03/06Host can then read or write by burst an amount of data defined by the protocol (see Section “Data Flow Controller”, p

Page 126

211 AT85C51SND3Bx7632A–MP3–03/06RegistersReset Value = 0000 0000bTable 231. PSICON RegisterPSICON (1.ADh) – PSI Control Register 7 6 5 4 3 2 1 0PSEN

Page 127

212AT85C51SND3Bx 7632A–MP3–03/06Reset Value = 1000 0000bReset Value = 0000 0000bReset Value = 0000 0000b3-0 -ReservedThe value read from these bits i

Page 128

213 AT85C51SND3Bx7632A–MP3–03/06Serial I/O PortThe AT85C51SND3Bx implement a Serial Input/Output Port (SIO) allowing serial com-munication. By using

Page 129

214AT85C51SND3Bx 7632A–MP3–03/06Figure 106. SIO Block DiagramCharacter Format The character consists of five fields: start, data, parity, stop and g

Page 130

215 AT85C51SND3Bx7632A–MP3–03/06Table 238. Stop Bit Number SelectionGuard Field The guard field is not part of a character and is an optional inter-

Page 131

216AT85C51SND3Bx 7632A–MP3–03/06Figure 109. Baud Rate Generator Block DiagramTable 240. Baud Rate Generator Value (12x oversampling)Note: 1. This h

Page 132

217 AT85C51SND3Bx7632A–MP3–03/06Receiver As shown in Figure 110, the receiver is based on a character handler taking care of character integrity chec

Page 133

218AT85C51SND3Bx 7632A–MP3–03/06Receiver Errors There are three kinds of errors that can be set during character reception: the framing error, the pa

Page 134

219 AT85C51SND3Bx7632A–MP3–03/06Figure 113. SIO Controller Interrupt SystemRegistersReset Value = 0000 0000bPEIESIEN.3TIESIEN.1SIOInterruptRISINT.0F

Page 135

22AT85C51SND3Bx 7632A–MP3–03/06the clocks to the CPU and peripherals. Using INTn input, execution resumes when the input is released (see Figure 10)

Page 136

220AT85C51SND3Bx 7632A–MP3–03/06Reset Value = 0000 0000bTable 243. SFCON RegisterSFCON (0.95h) – SIO Flow Control Register7 6 5 4 3 2 1 0OVRSF3 OVRS

Page 137

221 AT85C51SND3Bx7632A–MP3–03/06Reset Value = 0X10 0010bReset Value = 0000 0000b1 TITransmission Interrupt FlagSet by hardware when the Tx FIFO is no

Page 138

222AT85C51SND3Bx 7632A–MP3–03/06Reset Value = XXXX XXXXbReset Value = 0000 0000bReset Value = 0000 0000bReset Value = 0000 0000bTable 246. SBUF Regi

Page 139

223 AT85C51SND3Bx7632A–MP3–03/06Serial Peripheral InterfaceThe AT85C51SND3Bx implement a Synchronous Peripheral Interface (SPI) allowing full-duplex,

Page 140

224AT85C51SND3Bx 7632A–MP3–03/06Figure 115. Typical Slave SPI Bus ConfigurationDescription The SPI controller interfaces with the C51 core through t

Page 141

225 AT85C51SND3Bx7632A–MP3–03/06The transmission begins by writing to SPDAT through CPU or DFC. Writing to SPDAT writes to an intermediate register w

Page 142

226AT85C51SND3Bx 7632A–MP3–03/06When the AT85C51SND3Bx is the only slave on the bus, it can be useful not to use SSpin and get it back to I/O functio

Page 143

227 AT85C51SND3Bx7632A–MP3–03/06Data Transfer The Clock Polarity bit (CPOL in SPCON) defines the default SCK line level in idle state(1) while the Cl

Page 144

228AT85C51SND3Bx 7632A–MP3–03/06Figure 120 shows a SPI transmission with CPHA = 1, where the first SCK edge is used by the slave as a start of transm

Page 145

229 AT85C51SND3Bx7632A–MP3–03/06– the MSTR bit in SPCON is clearedClearing the MODF bit is accomplished by reading SPSCR with MODF bit set, followed

Page 146

23 AT85C51SND3Bx7632A–MP3–03/06Reset In order to secure the product functionality while in power-up or power-down phase or while in running phase, a

Page 147

230AT85C51SND3Bx 7632A–MP3–03/06OverRun Condition This error means that the speed is not adapted for the running application. An OverRun condition oc

Page 148

231 AT85C51SND3Bx7632A–MP3–03/06Reset Value = 0001 0100b4 MSTRMaster Mode SelectSet to select the master mode. Clear to select the slave mode.3 CPOLS

Page 149

232AT85C51SND3Bx 7632A–MP3–03/06Reset Value = 0000 1000bReset Value = XXXX XXXXb1 SPTEIESPTE Interrupt Enable BitSet to enable SPTE interrupt generat

Page 150

233 AT85C51SND3Bx7632A–MP3–03/06Display Interface The AT85C51SND3Bx implement a display interface allowing glueless direct interfacing (thanks to its

Page 151

234AT85C51SND3Bx 7632A–MP3–03/06Access Cycles The AT85C51SND3Bx enables connection of LCD controller with normalized 6800 and 8080 interface as shown

Page 152

235 AT85C51SND3Bx7632A–MP3–03/06Sleep Wait Time The sleep wait time is the time between two consecutive access cycle. It can be pro-grammed by SLW1:0

Page 153

236AT85C51SND3Bx 7632A–MP3–03/06RegistersReset Value= 0000 0000bTable 255. LCDCON0 RegisterLCDCON0 (1.96h) – LCD Control Register 07 6 5 4 3 2 1 0BU

Page 154

237 AT85C51SND3Bx7632A–MP3–03/06Reset Value= 0000 0000bReset Value= 0000 0000bReset Value= 0000 0000b3 LCYCTCycle Type SelectionSet to select non nor

Page 155

238AT85C51SND3Bx 7632A–MP3–03/06Reset Value= 0000 0000bTable 259. LCDDAT RegisterLCDDAT (1.97h) – LCD Data Register7 6 5 4 3 2 1 0LD7 LD6 LD5 LD4 LD

Page 156

239 AT85C51SND3Bx7632A–MP3–03/06Keyboard Interface The AT85C51SND3Bx implement a keyboard interface allowing the connection of a 4 x n matrix keyboar

Page 157

24AT85C51SND3Bx 7632A–MP3–03/06Figure 13. Reset Circuitry and Power-On ResetCold Reset 2 conditions are required before enabling a CPU start-up:•VDD

Page 158

240AT85C51SND3Bx 7632A–MP3–03/06Registers Table 260. KBCON RegisterKBCON (0.A3h) – Keyboard Control RegisterReset Value = 0000 1111bTable 261. KBST

Page 159

4AT85C51SND3Bx 7632A–MP3–03/06Electrical CharacteristicsAbsolute Maximum RatingDC CharacteristicsDigital Logic Table 257. Digital DC Characteristics

Page 160

5 AT85C51SND3Bx7632A–MP3–03/06Oscillator & CrystalSchematic Figure 134. Crystal ConnectionNote: For operation with most standard crystals, no ex

Page 161

6AT85C51SND3Bx 7632A–MP3–03/06Parameters Table 259. DC-DC Filter CharacteristicsTA = -40 to +85°CTable 260. DC-DC Power CharacteristicsVBAT = 0.9 t

Page 162

7 AT85C51SND3Bx7632A–MP3–03/06Table 263. Low Voltage Regulator Power CharacteristicsHVDD = 3 to 3.6 V; TA = -40 to +85°CUSBSchematic Figure 137. US

Page 163

8AT85C51SND3Bx 7632A–MP3–03/06Parameters Table 265. Audio Codec Components CharacteristicsTA = -40 to +85°CNotes: 1. Value in low impedance mode (He

Page 164

9 AT85C51SND3Bx7632A–MP3–03/06AC CharacteristicsNFC InterfaceDefinition of Symbols Table 1. NFC Interface Timing Symbol DefinitionsTimings Table 267

Page 165

10AT85C51SND3Bx 7632A–MP3–03/06WaveformsFigure 140. NFC Command Latch Cycle WaveformsFigure 141. NFC Address Latch Cycle WaveformsFigure 142. NFC

Page 166

11 AT85C51SND3Bx7632A–MP3–03/06Figure 143. NFC Write Cycle WaveformsMMC InterfaceDefinition of symbols Table 268. MMC Interface Timing Symbol Defin

Page 167

12AT85C51SND3Bx 7632A–MP3–03/06Waveforms Figure 144. MMC Input-Output WaveformsLCD Interface To be definedDefinition of SymbolsTimingsWaveformsSIO I

Page 168

25 AT85C51SND3Bx7632A–MP3–03/06RegistersReset Value = 00011 0000bTable 20. PCON RegisterPCON (0.87h) – Power Control Register7 6 5 4 3 2 1 0VBCEN VB

Page 169

13 AT85C51SND3Bx7632A–MP3–03/06Table 271. SPI Interface Master AC TimingVDD = 1.65 to 3.6 V; TA = -40 to +85°CNote: 1. Value of this parameter depen

Page 170

14AT85C51SND3Bx 7632A–MP3–03/06Waveforms Figure 145. SPI Slave Waveforms (SSCPHA= 0)Note: 1. Not Defined but generally the MSB of the character whic

Page 171

15 AT85C51SND3Bx7632A–MP3–03/06Figure 147. SPI Master Waveforms (SSCPHA= 0)Note: SS handled by software using general purpose port pin.Figure 148.

Page 172

16AT85C51SND3Bx 7632A–MP3–03/06Audio DAC InterfaceDefinition of symbols Table 272. Audio DAC Interface Timing Symbol DefinitionsTimings Table 273.

Page 173

17 AT85C51SND3Bx7632A–MP3–03/06Timings Table 275. External Clock AC TimingsVDD = 1.65 to 3.6 V; TA = -40 to +85°CWaveforms Figure 150. External Clo

Page 174

253 AT85C51SND3Bx7632A–MP3–03/06Ordering InformationTable 280. Ordering InformationNotes: 1. Codec option, see Table 281 below.2. Contact sales offi

Page 175

254AT85C51SND3Bx 7632A–MP3–03/06Package InformationLQFP 100

Page 176

255 AT85C51SND3Bx7632A–MP3–03/06CTBGA 100

Page 177

17632A–MP3–03/06AT85C51SND3A Table of ContentsFeatures ...

Page 178

27632A–MP3–03/06AT85C51SND3A Registers...5

Page 179

26AT85C51SND3Bx 7632A–MP3–03/06Reset Value = XX00 0XXXb(1)Note: 1. Reset value depends on the power supply presence and on the internal reset source.

Page 180

37632A–MP3–03/06 AT85C51SND3APower-On and Reset ... 101Speed Ide

Page 181

47632A–MP3–03/06AT85C51SND3A Clock Unit ... 169

Page 182

57632A–MP3–03/06 AT85C51SND3AAC Characteristics...246Orderi

Page 183

Printed on recycled paper.7632A–MP3–03/06© Atmel Corporation 2006. All rights reserved. Atmel®, logo and combinations thereof, are registered tradema

Page 184

27 AT85C51SND3Bx7632A–MP3–03/06Clock Controller The AT85C51SND3Bx clock controller is based on an on-chip oscillator feeding two on-chip Phase Lock L

Page 185

28AT85C51SND3Bx 7632A–MP3–03/06Figure 16. Crystal ConnectionClock Generator The clock generator provides the oscillator and higher frequency clocks

Page 186

29 AT85C51SND3Bx7632A–MP3–03/06Figure 18. PLL Block Diagram and SymbolTable 24. PLL Reverse Clock SelectionPLL Programming The PLL is programmed de

Page 187

3 AT85C51SND3Bx7632A–MP3–03/06Block DiagramFigure 1. AT85C51SND3Bx Block DiagramNotes: 1. AT85C51SND3B3 only2. AT85C51SND3B2 & AT85C51SND3B3 onl

Page 188

30AT85C51SND3Bx 7632A–MP3–03/06Figure 19. System Clock Generator Block Diagram and SymbolsTable 26. System Clock SelectionX2 Feature Unlike standar

Page 189

31 AT85C51SND3Bx7632A–MP3–03/06Figure 21. DFC/NFC Clock Generator Block Diagram and SymbolTable 27. DFC/NFC Clock SelectionMMC Clock Generator The

Page 190

32AT85C51SND3Bx 7632A–MP3–03/06Table 28. MMC Clock SelectionTable 29. MMC Clock DividerSIO Clock Generator As detailed in Figure 23, the SIO clock

Page 191

33 AT85C51SND3Bx7632A–MP3–03/06RegistersReset Value = 0000 0000bTable 31. CKCON RegisterCKCON (0.8Fh) – Clock Control Register7 6 5 4 3 2 1 0- WDX2

Page 192

34AT85C51SND3Bx 7632A–MP3–03/06Reset Value = 0000 0000bTable 32. CKEN RegisterCKEN (0.B9h) – Clock Enable Register7 6 5 4 3 2 1 0CKGENE PLLEN - PLOC

Page 193

35 AT85C51SND3Bx7632A–MP3–03/06Reset Value = 0000 0000bReset Value = 0000 0000bReset Value = 0000 0000bTable 33. CKSEL RegisterCKSEL (0.BAh) – Clock

Page 194

36AT85C51SND3Bx 7632A–MP3–03/06Special Function RegistersSFR Pagination The AT85C51SND3Bx implement a SFR pagination mechanism which allows mapping o

Page 195

37 AT85C51SND3Bx7632A–MP3–03/06SFR Registers The Special Function Registers (SFRs) of the AT85C51SND3Bx fall into the categories detailed in Table 39

Page 196

38AT85C51SND3Bx 7632A–MP3–03/06Table 42. Interrupt SFRs Mnemonic Add Name 7 6 5 4 3 2 1 0IEN0 0.A8h Interrupt Enable Control 0 EA EAUP EDFC ES ET1 E

Page 197

39 AT85C51SND3Bx7632A–MP3–03/06Table 46. Memory Management SFRsMnemonic Add Name 7 6 5 4 3 2 1 0MEMCBAX 0.F2h Memory CODE Base Address CBAX16:9MEMDB

Page 198

4AT85C51SND3Bx 7632A–MP3–03/06Application InformationThe AT85C51SND3Bx allow design of 2 typical applications which differentiate by the power supply

Page 199

40AT85C51SND3Bx 7632A–MP3–03/06USB Device Registers (HOST cleared)UDCON 1.D9h Device Global Control - - - - - - RMWKUP DETACHUDINT 1.D8hDevice Global

Page 200

41 AT85C51SND3Bx7632A–MP3–03/06USB Pipe Registers (HOST set)UPNUM 1.C9h USB Host Pipe Number - - - - - PNUM2:0UPRST 1.CAh USB Host Pipe Reset - PRST6

Page 201

42AT85C51SND3Bx 7632A–MP3–03/06NFBPH 1.94h NF Byte Position (MSB) BP15:8NFBPL 1.95h NF Byte Position (LSB) BP7:0Table 50. NFC SFRsMnemonicAddName 7

Page 202

43 AT85C51SND3Bx7632A–MP3–03/06Note: Available in AT85C51SND3B2 & AT85C51SND3B3 only.APEBS 2.F6hAudio Processor Equalizer Band Select- - - - 0 EQ

Page 203

44AT85C51SND3Bx 7632A–MP3–03/06SINT 1.A8h SIO Interrupt - - EOTI OEI PEI FEI TI RISIEN 1.A9h SIO Interrupt Enable - - EOTIE OEIE PEIE FEIE TIE RIESBU

Page 204

45 AT85C51SND3Bx7632A–MP3–03/06Notes: 1. SFR registers with least significant nibble address equal to 0 or 8 are bit-addressable.Table 59. SFR Page

Page 205

46AT85C51SND3Bx 7632A–MP3–03/06Note: 1. SFR registers with least significant nibble address equal to 0 or 8 are bit-addressable.Table 60. SFR Page 1

Page 206

47 AT85C51SND3Bx7632A–MP3–03/06Notes: 1. SFR registers with least significant nibble address equal to 0 or 8 are bit-addressable.2. Available in AT85

Page 207

48AT85C51SND3Bx 7632A–MP3–03/06Notes: 1. SFR registers with least significant nibble address equal to 0 or 8 are bit-addressable.2. SVERS reset value

Page 208

49 AT85C51SND3Bx7632A–MP3–03/06Memory Space The AT85C51SND3Bx provide an “all in one” 64K bytes of RAM split between the three standard C51 memory se

Page 209

5 AT85C51SND3Bx7632A–MP3–03/06Low Voltage 3V SystemFigure 3. Typical Low Voltage 3V Application3V NF MemoriesSD/MMC3V DC-DCBatteryFM ModuleAT85C51SN

Page 210

50AT85C51SND3Bx 7632A–MP3–03/06Table 63. Register Bank SelectionThe next 16 Bytes above the register banks form a block of bit-addressable memory sp

Page 211

51 AT85C51SND3Bx7632A–MP3–03/06The Figure 27 shows the memory segments configuration after bootstrap execution along with an example of user memory s

Page 212

52AT85C51SND3Bx 7632A–MP3–03/06Reset Value MEMCBA0 = 0 0000 000bReset Value MEMDBAX = 0 1111 111bReset Value MEMXBAX = 0 1111 000bTable 65. MEMCBAX

Page 213

53 AT85C51SND3Bx7632A–MP3–03/06Reset Value MEMCSX = 1110 1111bReset Value MEMXSX = 0000 1110bBit NumberBit MnemonicDescription7-0 CSX7:0CODE Size Bit

Page 214

54AT85C51SND3Bx 7632A–MP3–03/06

Page 215

55 AT85C51SND3Bx7632A–MP3–03/06Interrupt System The AT85C51SND3Bx, like other control-oriented computer architectures, employ a program interrupt met

Page 216

56AT85C51SND3Bx 7632A–MP3–03/06Table 71. Priority Within Same LevelInterrupt Name Priority NumberInterrupt Address VectorsInterrupt Request Flag Cle

Page 217

57 AT85C51SND3Bx7632A–MP3–03/06Figure 28. Interrupt Control SystemEPSIIEN1.2EKBIEN1.1EMMCIEN1.5ESPIIEN1.3EX0IEN0.000011011EAIEN0.7EX1IEN0.2ET0IEN0.1

Page 218

58AT85C51SND3Bx 7632A–MP3–03/06External InterruptsINT1:0 Inputs External interrupts INT0 and INT1 (INTn, n = 0 or 1) pins may each be programmed to b

Page 219

59 AT85C51SND3Bx7632A–MP3–03/06RegistersReset Value = 0000 0000bTable 72. IEN0 RegisterIEN0 (0.A8h) – Interrupt Enable Register 07 6 5 4 3 2 1 0EA E

Page 220

6AT85C51SND3Bx 7632A–MP3–03/06Pin DescriptionPinoutsFigure 4. AT85C51SND3Bx 100-pin QFP PackageNotes: 1. Leave these pins unconnected for AT85C51SND

Page 221

60AT85C51SND3Bx 7632A–MP3–03/06Reset Value = 0000 0000bTable 73. IEN1 RegisterIEN1 (0.B1h) – Interrupt Enable Register 176543210- - EMMC ENFC ESPI E

Page 222

61 AT85C51SND3Bx7632A–MP3–03/06Reset Value = X000 0000bTable 74. IPH0 RegisterIPH0 (0.B7h) – Interrupt Priority High Register 07 6 5 4 3 2 1 0- IPHA

Page 223

62AT85C51SND3Bx 7632A–MP3–03/06Reset Value = 0000 0000bTable 75. IPH1 Register IPH1 (0.B3h) – Interrupt Priority High Register 17 6 5 4 3 2 1 0- - I

Page 224

63 AT85C51SND3Bx7632A–MP3–03/06Reset Value = X000 0000bTable 76. IPL0 RegisterIPL0 (0.B8h) - Interrupt Priority Low Register 07 6 5 4 3 2 1 0- IPLAU

Page 225

64AT85C51SND3Bx 7632A–MP3–03/06Reset Value = 0000 0000bTable 77. IPL1 RegisterIPL1 (0.B2h) – Interrupt Priority Low Register 17 6 5 4 3 2 1 0- - IPL

Page 226

65 AT85C51SND3Bx7632A–MP3–03/06Timers/Counters The AT85C51SND3Bx implement 2 general-purpose, 16-bit Timers/Counters. They are identified as Timer 0

Page 227

66AT85C51SND3Bx 7632A–MP3–03/06Figure 31. Timer 0 and Timer 1 Clock Controller and SymbolsTimer 0 Timer 0 functions as either a Timer or event Count

Page 228

67 AT85C51SND3Bx7632A–MP3–03/06Figure 32. Timer/Counter x (x = 0 or 1) in Mode 0Figure 33. Mode 0 Overflow Period FormulaMode 1 (16-bit Timer) Mode

Page 229

68AT85C51SND3Bx 7632A–MP3–03/06Figure 36. Timer/Counter x (x = 0 or 1) in Mode 2Figure 37. Mode 2 Auto-reload Period FormulaMode 3 (2 x 8-bit Timer

Page 230

69 AT85C51SND3Bx7632A–MP3–03/06Timer 0 Enhanced Mode Timer 0 overflow period can be increased in all modes by enabling a divider as detailed in Figur

Page 231

7 AT85C51SND3Bx7632A–MP3–03/06Signals DescriptionSystem Table 1. System Signal DescriptionTable 2. Ports Signal DescriptionSignal NameType Descript

Page 232

70AT85C51SND3Bx 7632A–MP3–03/06• It is important to stop the Timer/Counter before changing modes.Table 80. Timer/counter 1 Operating ModesMode 0 (13

Page 233

71 AT85C51SND3Bx7632A–MP3–03/06RegistersReset Value = 0000 0000bTable 81. TCON RegisterTCON (0.88h) – Timer/Counter Control Register7 6 5 4 3 2 1 0T

Page 234

72AT85C51SND3Bx 7632A–MP3–03/06Reset Value = 0000 0000bReset Value = 0000 0000bTable 82. TMOD RegisterTMOD (0.89h) – Timer/Counter Mode Control Regi

Page 235

73 AT85C51SND3Bx7632A–MP3–03/06Reset Value = 0000 0000bReset Value = 0000 0000bReset Value = 0000 0000bTable 84. TL0 RegisterTL0 (0.8Ah) – Timer 0 L

Page 236

74AT85C51SND3Bx 7632A–MP3–03/06Reset Value = 0000 0000bTable 87. SCHCLK RegisterSCHCLK (0.FEh) – Scheduler Clocks Register76543210- T0ETB2 T0ETB1 T0

Page 237

75 AT85C51SND3Bx7632A–MP3–03/06Watchdog Timer The AT85C51SND3Bx implement a hardware Watchdog Timer (WDT) that automati-cally resets the chip if it i

Page 238

76AT85C51SND3Bx 7632A–MP3–03/06Operation After reset, the WDT is disabled. The WDT is enabled by writing the sequence 1Eh and E1h into the WDTRST reg

Page 239

77 AT85C51SND3Bx7632A–MP3–03/06RegistersReset Value = XXXX XXXXbReset Value = XXXX X000bTable 89. WDTRST RegisterWDTRST (0.A6h Write only) – Watchdo

Page 240

78AT85C51SND3Bx 7632A–MP3–03/06Data Flow Controller The Data Flow Controller (DFC) embedded in the AT85C51SND3Bx is the multimedia data transfer mana

Page 241

79 AT85C51SND3Bx7632A–MP3–03/06Table 92 shows the different peripherals (source or destination) ID number. These num-bers are used to program the SID

Page 242

8AT85C51SND3Bx 7632A–MP3–03/06Table 3. Timer 0 and Timer 1 Signal DescriptionP4.6:0 I/OPort 4 P4 is a 7-bit bidirectional I/O port with internal pul

Page 243

80AT85C51SND3Bx 7632A–MP3–03/06selected as source, the null device is always ready and sends the data (2 bytes) of the initialized CRC value MSB firs

Page 244

81 AT85C51SND3Bx7632A–MP3–03/06Figure 46. Immediate Data Flow Abort DiagramFigure 47. Delayed Data Flow Abort DiagramData Flow Configuration Prior

Page 245

82AT85C51SND3Bx 7632A–MP3–03/06RegistersReset Value = 0000 0000bTable 94. DFCON RegisterDFCON (1.89h) – DFC Control Register7 6 5 4 3 2 1 0- DFRES -

Page 246

83 AT85C51SND3Bx7632A–MP3–03/06Reset Value = 0000 0000bReset Value = 0000 0000b3 DRDY0Channel 0 Destination Ready FlagSet by hardware when the source

Page 247

84AT85C51SND3Bx 7632A–MP3–03/06Reset Value = 0000 0000bReset Value = 0000 0000bReset Value = 0000 0000bTable 97. DFD0 RegisterDFD0 (1.8Ah) – DFC Cha

Page 248

85 AT85C51SND3Bx7632A–MP3–03/06USB Controller The AT85C51SND3Bx Implements a USB controller allowing the AT85C51SND3Bx to act as a USB device or a US

Page 249

86AT85C51SND3Bx 7632A–MP3–03/06Figure 50. USB ConnectionGeneral Operating ModesIntroduction After a hardware reset, the USB controller is disabled.

Page 250

87 AT85C51SND3Bx7632A–MP3–03/06• The DPACC bit and the DPADD10:0 field can be set by software. The DPRAM is not cleared.• The SPDCONF bits can be set

Page 251

88AT85C51SND3Bx 7632A–MP3–03/06There are 2 kinds of interrupts: processing (i.e. their generation are part of the normal processing) and exception (e

Page 252

89 AT85C51SND3Bx7632A–MP3–03/06Speed ControlDevice Mode When the USB interface is configured in device mode, the speed selection (Full Speed or High

Page 253

9 AT85C51SND3Bx7632A–MP3–03/06Clock Controller Table 4. Clock Signal DescriptionMemory Controllers Table 5. Secure Digital Card / MutiMediaCard Con

Page 254

90AT85C51SND3Bx 7632A–MP3–03/06When using this mode, there is no influence over the USB controller.Memory Management The controller only supports the

Page 255

91 AT85C51SND3Bx7632A–MP3–03/06• First, Pipe/Endpoint 0 to Pipe/Endpoint 5 are configured, in the growing order. The memory of each is reserved in th

Page 256

92AT85C51SND3Bx 7632A–MP3–03/06OTG Timers Customizing It is possible to refine some OTG timers thanks to the OTGTCON register (see Table 108). This r

Page 257

93 AT85C51SND3Bx7632A–MP3–03/06The control logic of the UVCC pad outputs 2 signals:• The “session_valid” signal is active high when the voltage on th

Page 258 - AT85C51SND3A

94AT85C51SND3Bx 7632A–MP3–03/06ID Detection The ID pin transition is detected thanks to the following architecture:Figure 58. ID Detection Input Blo

Page 259

95 AT85C51SND3Bx7632A–MP3–03/06Reset Value = 0010 0000bReset Value = 0000 0000bReset Value = 0000 0000b0 VBUSTEVBUS Transition Interrupt Enable BitSe

Page 260 - AT85C51SND3A

96AT85C51SND3Bx 7632A–MP3–03/06Reset Value = 0000 0000bReset Value = 0000 0000bTable 105. UDPADDH RegisterUDPADDH (1.E4h) – USB Dual Port Ram Direct

Page 261

97 AT85C51SND3Bx7632A–MP3–03/06Reset Value = 0000 0000bReset Value = 0000 0000b5 HNPREQHNP Request BitSet to initiate the HNP when the controller is

Page 262

98AT85C51SND3Bx 7632A–MP3–03/06Reset Value = 0000 0000bTable 109. OTGIEN RegisterOTGIEN (1.E7h) – USB OTG Interrupt Enable Register7 6 5 4 3 2 1 0-

Page 263 - Printed on recycled paper

99 AT85C51SND3Bx7632A–MP3–03/06Reset Value = 0000 0000b3 ROLEEXIRole Exchange Interrupt FlagSet by hardware when the USB controller has successfully

Comments to this Manuals

No comments