Download 32-bit general purpose microcontroller core User manual
Transcript
User manual Table of Contents 1 Introduction................................................................................................................................................... 4 2 Internal structure........................................................................................................................................... 5 3 Programming osinka32................................................................................................................................. 6 3.1 Register description.............................................................................................................................. 6 3.2 Structure of the assembler file.............................................................................................................. 8 3.3 Memory addressing.............................................................................................................................. 9 3.3.1 Compiler directives and variable declaration................................................................................9 3.3.2 Address calculation and assembler mnemonics.........................................................................11 3.3.3 Sequential memory reading and writing......................................................................................11 3.3.4 Reading data from code memory................................................................................................ 12 3.3.5 Memory alignment...................................................................................................................... 12 3.3.6 Data memory organization.......................................................................................................... 13 3.3.7 Code memory organization and execution start point.................................................................13 3.4 IO bus and communication with periphery units.................................................................................17 3.5 Thread switch..................................................................................................................................... 17 3.5.1 Purpose and idea........................................................................................................................ 17 3.5.2 Thread context and thread list.................................................................................................... 18 3.6 Interrupts (IRQ)................................................................................................................................... 21 4 Command summary.................................................................................................................................... 22 5 IDE description........................................................................................................................................... 25 5.1 System requirements.......................................................................................................................... 25 5.2 Installation........................................................................................................................................... 26 5.3 Deinstallation...................................................................................................................................... 26 5.4 IDE main window................................................................................................................................ 26 5.5 Starting a new project......................................................................................................................... 26 5.6 Compiling the project.......................................................................................................................... 28 6 Output files format...................................................................................................................................... 30 7 Hardware implementation........................................................................................................................... 31 7.1 External interface................................................................................................................................ 31 7.2 Clock and Reset................................................................................................................................. 32 7.3 Memory interface................................................................................................................................ 33 7.4 IO Interface......................................................................................................................................... 35 3/37