200 likes | 351 Views
8 Bit RISC MCU. FPSLIC- Embedded MCU Core. Industry’s Highest 8-bit Performance. A Real 8-Bit RISC Architecture. Low Power ( idle/power down/power save ). A broad Family of MCUs ( over 35 Products ). A Variety of Peripherals. Excellent C Language Code Density.
E N D
8 Bit RISC MCU FPSLIC- Embedded MCU Core • Industry’s Highest 8-bit Performance • A Real 8-Bit RISC Architecture • Low Power ( idle/power down/power save ) • A broad Family of MCUs ( over 35 Products ) • A Variety of Peripherals • Excellent C Language Code Density • In-System Programmable SRAM • Large Applications Database
R0 R1 R2 R3 R26 XL X Pointer R27 XH R28 YL Y Pointer R29 YH R30 ZL Z Pointer R31 ZH Register File Register File • 32 Registers give good C code density • X, Y, Z pointers used by compilers for high density C code especially in loop constructs and pointer based code
Direct Register - ALU Connection Register File Register operations take ONE clock pulse on the EXTERNAL clock input ALU
Compare Two 32-Bit Values Example: Compare R3:R2:R1:R0 and R7:R6:R5:R4 cp r0,r4 cpc r1,r5 cpc r2,r6 cpc r3,r7 At the end, the Status Register Indicates Equal,Higher, Lower, Greater (signed), Less Than (signed). Besides, it takes only 4 instructions and 4 clockcycles to do it...
What makes the AVR better? • Excellent support for 32/16-bit arithmetic's. • (Zero-Flag) Propagation • A lot of registers - eliminate moves to and from SRAM • Single Cycle execution • 127+ powerful instructions available
E1 sub r0,r2 03 sbc r1,r3 Subtract Two 16-Bit Values Without Zero Flag Propagation R1:R0 - R3:R2 ($E104 - $E101) R1 R0 Z E1 04 X 03 0 00 1 Wrong!
E1 sub r0,r2 03 sbc r1,r3 Subtract Two 16-Bit Values With Zero Flag Propagation R1:R0 - R3:R2 ($E104 - $E101) R1 R0 Z E1 04 X 03 0 00 0 Correct!
I/O Mult Timer2 Timer0 Timer1 UART0 UART1 2-Wire IT WD FPSLIC- Embedded Fixed Peripherals 8 Bit RISC MCU
UART Features • Full Duplex • 8 or 9 Data Bits • Framing Error Detection • False Start Bit Detection • Noise Canceling • High BAUD Rates at low XTAL FrequenciesE.g. 115,200 Baud at 1.8432 MHz • Can run at Practically any Baud Rate • Multi-processor Communication mode • Three Interrupts with Separate Vectors UART0 UART1 FPSLIC- Embedded Fixed Peripherals
2 Wire interface Features • Master/Slave support • Transmitter/Receiver • Up to 400Khz bus clock rate UART0 UART1 2-Wire FPSLIC- Embedded Fixed Peripherals 8 Bit RISC MCU
Timer/counter0 • 8-Bit • Overflow Interrupt • Output Compare Function with Interrupt • 8-Bit PWM Function Timer0 2-Wire FPSLIC- Embedded Fixed Peripherals 8 Bit RISC MCU
Timer/counter1 • 16-Bit • Overflow Interrupt • Output Compare Function with Interrupt • Input Capture with Interrupt and Noise Canceler • 10, 9 or 8-Bit PWM Function Timer1 2-Wire FPSLIC- Embedded Fixed Peripherals 8 Bit RISC MCU
Timer/counter2 Timer2 Timer1 • 8-Bit • Overflow Interrupt • Output Compare Function with Interrupt • 8-Bit PWM Function • Real Time Clock function ( Xtal2) FPSLIC- Embedded Fixed Peripherals 8 Bit RISC MCU
Timer2 Timer0 Timer1 UART0 Watchdog/Timer • Clocked from Internal 1 MHz RC Oscillator • Time-Out Adjustable 47ms - 6s. • Watchdog Timer Reset is done by executing the “WDR” instruction WD FPSLIC- Embedded Fixed Peripherals 8 Bit RISC MCU
Timer2 Timer0 Timer1 4 External Interrupts • Short Response Time (4 Clock Cycles + RJMP to Routine) • Automatic Interrupt Flag Clearing • Automatic Disable of Other Interrupts Inside the Interrupt Routine IT WD FPSLIC- Embedded Fixed Peripherals UART0 8 Bit RISC MCU
Hardware Multiplier 8x8 in 2 clock cycles Mult Timer2 Timer0 Timer1 UART0 UART1 2-Wire IT WD FPSLIC- Embedded Fixed Peripherals 8 Bit RISC MCU
I/Os I/O • Push-Pull Drivers • configurable Current Drive (6 or 20 mA) • Pinwise Controlled Pull-Up Resistors • Pinwise Controlled Data Direction • Fully Synchronized Inputs • Three Control/Status Bits per Bit/Pin • Real Read-Modify-Write • Up to 16 AVR I/Os (port D and E) Mult UART0 UART1 2-Wire IT WD FPSLIC- Embedded Fixed Peripherals
8 Bit RISC MCU AVR Designs AVR Studio Instruction Set Simulator Requires an Assembly or C Compiler • AVR Studio can be used with Assembly or C to debug code • A HEX file is then used to program the AVR
C - COMPILER Support ( Can be Launched Directly from System Designer ) • IAR ( www.iar.se ) Approx. $1500 • ImageCraft ( www.imagecraft.com ) Approx. $200 • Codevision V1.0.1.4 (infotech.ir.ro) Approx. $150 • Others coming
FPSLIC-AVR Debugger • Easy to Use Windows interface • C and Assembly source level debugging • Auto- stepping • Break points • Watch variables • View registers • View memory map • View processor states • View Peripheral states • Cycles/time count