Texas Instruments Managing EMEX and BUSY States in Mixed Signal Microcontrollers

Page 14

MSP430x11x1

MIXED SIGNAL MICROCONTROLLER

SLAS241C ± SEPTEMBER 1999 ± REVISED JUNE 2000

flash memory, timing generator, control register FCTL2 (continued)

The flash timing generator is reset with PUC. It is also reset if the emergency exit bit EMEX is set.

Control register FCTL2 may not be written to if the BUSY bit is set; otherwise, an access violation will occur (ACCVIFG=1).

Read access is possible at any time without restrictions.

SSEL1

SSEL0

 

 

 

0

FN5.......... FN0

 

ACLK

 

 

 

 

 

MCLK

1

Divider,

fX

 

 

 

SMCLK

2

1 .. 64

 

 

 

 

SMCLK

3

 

 

 

 

 

Write '1' to

PUC EMEX

Reset

Flash Timing

Generator

BUSY WAIT

Figure 1. Flash Memory Timing Generator Diagram

15

FCTL2

012Ah

FCTL2 read:

FCTL2 write:

8

7

 

 

 

 

 

 

 

 

 

 

 

 

0

 

SSEL1

 

SSEL0

 

FN5

 

FN4

 

FN3

 

FN2

 

FN1

 

FN0

 

rw±0

 

rw±1

 

rw-0

 

rw-0

 

rw-0

 

rw±0

 

rw-1

 

rw-0

 

 

 

 

 

 

 

 

096h

0A5h

The control bits are:

 

FN0±FN5

012Ah, bit0±5

These six bits define the division rate of the clock signal. The division

 

 

rate is 1 to 64, according to the digital value of FN5 to FN0 plus one.

SSEL0, SSEL1

012Ah, bit6,7

Clock source select

 

 

0: ACLK

1: MCLK

2: SMCLK

3: SMCLK

The flash timing generator is reset with PUC. It is also reset if the EMEX bit is set.

flash memory control register FCTL3

There are no restrictions to modify this control register.

15

FCTL3

012Ch

8

7

 

 

 

 

 

 

0

 

res.

res.

EMEX

Lock

WAIT

ACCV

KEYV

BUSY

 

IFG

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

r0

r0

rw-0

rw-1

rw-1

rw±0 rw-(0)

r(w)-0

FCTL3 read:

 

096h

 

 

 

 

FCTL3 write:

 

 

 

 

 

0A5h

 

 

 

 

 

 

 

 

 

 

 

 

 

 

14

POST OFFICE BOX 655303 DALLAS, TEXAS 75265

Image 14
Contents Tssop MSP430x11x1Description PIN Sowb PIN Tssop Functional block diagramAvailable Options Packaged Devices Pulldown resistor of 30 k Ω is needed on F11x1Processing unit Terminal FunctionsShort-form description Terminal Description NameInstruction set Address Mode DescriptionsCPU Instruction Word FormatsLow-power consumption capabilities Operation modes and interruptsSCG0 Status register R2SCG1 SCG1 SCG0Wdtifg Interrupt vector addressesCaifg CCIFG1, CCIFG2, TaifgOfifg Special function registersWdtifg NmiifgMemory organization Boot ROM containing bootstrap loaderFunctions of the bootstrap loader WDT Features of the bootstrap loader areHardware resources used for serial input/output VCC RST/NMI PIN Test PINTest Bootstrap loader StartsVCC InternalFlash memory Flash memory control register FCTL1WRT Flash memory, timing generator, control register FCTL2Erase 0128h, bit1, Erase a segment SSEL0, SSEL1 Flash memory control register FCTL3FN0±FN5 AclkAccvifg BusyKeyv WaitEmex Flash memory, interrupt and security key violationLock POR AccvPUC NmirsPeripherals Oscillator and system clockClock Signals Digital I/OWatchdog timer TimerA Three capture/compare registersTimerA 3 capture/compare registers TimerA, MSP430x11x1 ConfigurationComparatorA CACTL2.4 CaoutCAF CATCTL2.7Caex Caon Caies Caifg Rsel REF1 REF0 Slope a/d conversionCACTL1 CACTL2Peripheral file map Peripherals with Word AccessPeripherals with Byte Access MIN NOM MAX Units Absolute maximum ratings²Recommended operating conditions MSP430x11x1 Devices Frequency vs Supply VoltageILPM2 Parameter Test Conditions MIN TYP MAX UnitIAM ILPM3Outputs Port 1 to P2 P1.0 to P1.7, P2.0 to P2.5 Leakage currentParameter Test Conditions VCC MIN TYP MAX Unit Internal signals TAx, Smclk at TimerAInputs Px.x, TAx Port P1, P2 P1.x to P2.xOutputs P1.x, P2.x, TAx ComparatorA see NoteVRefVT vs Temperature, VCC = 3 V, C1121 VRefVT vs Temperature, VCC = 2.2 V, C1121PUC/POR CAF CaonRAM Parameter MIN NOM MAX UnitDcoclk DCOVariance Max DCO StepsJTAG/programming Principle characteristics of the DCOWake-up from lower power modes LPMx GND Input/output schematicPort P1, P1.0 to P1.3, input/output with Schmitt-trigger P1DIR.5 P1OUT.5 P1DIR.4 P1OUT.4 SmclkP1IFG.4 P1IES.4 P1IFG.5 P1IES.5Port P2, P2.0 to P2.2, input/output with Schmitt-trigger CAPD.XP2IFG.3 P1IES.3 Port P2, P2.3 to P2.4, input/output with Schmitt-triggerP2DIR.3 P2OUT.3 P2DIR.4 P2OUT.4P2OUT.5 P2SEL.5 VCCP2DIR.5 P2IRQ.5Port P2, unbonded bits P2.6 and P2.7 Plastic SMALL-OUTLINE Package Pins DIM MAXDW R-PDSO-G PIN ShownPW R-PDSO-G Plastic SMALL-OUTLINE Package Pins ShownPins DIM MAX MIN 15 NOM Gage Plane Seating Plane 20 MAXImportant Notice