Data Structures
Freescale Semiconductor Application Note
Document Number: AN3334 Rev. 0, 11/2006
Data Structures for RS08 Microcontrol...
Description
Freescale Semiconductor Application Note
Document Number: AN3334 Rev. 0, 11/2006
Data Structures for RS08 Microcontrollers
by: Inga Harris 8-bit Microcontroller Applications Engineer East Kilbride, Scotland
1
Introduction
1 2
Contents
Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1 Strings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2 2.1 Storing Strings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2 2.2 Accessing Strings . . . . . . . . . . . . . . . . . . . . . . . . . . 3 2.3 String Applications. . . . . . . . . . . . . . . . . . . . . . . . . . 3 Stacks . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 3.1 Stack Reading and Writing . . . . . . . . . . . . . . . . . . . 4 3.2 MCU Hardware Stack . . . . . . . . . . . . . . . . . . . . . . . 4 3.3 RS08 Stack Applications . . . . . . . . . . . . . . . . . . . . . 5 Queues . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7 4.1 Reading and Writing . . . . . . . . . . . . . . . . . . . . . . . . 8 4.2 Queue Errors . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8 4.3 Queue Applications . . . . . . . . . . . . . . . . . . . . . . . . . 8 Multiple Access Circular Queue (MACQ) . . . . . . . . . . . 11 5.1 Applications . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12 5.2 Example . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12 Tables . . . . . . ...
Similar Datasheet