| Electronic Components Datasheet Search |
|
Z8FS040 Datasheet(PDF) 54 Page - Zilog, Inc. |
|
|
|||||||||||||||||||||||||||||
Z8FS040 Datasheet(HTML) 54 Page - Zilog, Inc. |
|
54 / 56 page ![]() ZMOTION TM Detection and Control Family Product Specification PS028506-1110 PRELIMINARY 49 Appendix C Software Support Files and Project Configuration The following four files are provided to support the PIR engine: 1. ePIR_API.c: Contains the API register definitions and locates them at their appropriate places in memory. 2. ePIR_API.h: Provides the bit definitions for the API registers and also contains the macro definitions for EPIR_INIT and EPIR_ADC_ISR 3. API_INIT_xx.h: This header file contains the default API settings specific to the lens and pyroelectric sensor being used. The application code loads the API registers with these values prior to executing the EPIR_INIT macro. Several versions of this file are available from the zilog website with tested configurations supporting the available lenses and pyroelectric sensors. Refer to Appendix D to select the appropriate API_INIT_xx file for the selected lens. 4. startupePIR.asm: This is the C startup file that replaces startups.asm or startupl.asm in ZDS- II. It contains the environment initialization, stack and register pointer configurations required specifically for a PIR project. ZDS-II Project Settings Zilog Developer Studio (ZDS-II) is used for S/W development. Since the compiled application code has no vision into the operation of the PIR engine, it is important to ensure that the application working RAM area is not effected by engine operations. To facilitate this, the PIR engine uses working register group E (addresses E0h to EFh) as its working RAM area and the application code uses working register group 0 (as defined in startupePIR.asm). These operations are automatically handled by the compiler and examples are provided with the available sample projects. The Small Memory Model must be used for the application S/W. To support the defined memory map, ZDS-II project settings must be configured as follows (sample projects are available that have these settings already configured). Application Project Settings (Small Model) RData: 20h-6Fh, F0h-FFh o Defined in ZDS-II Project Settings under Linker Address Spaces o This allows for 16 bytes of stack space starting at 7Fh. If more space is needed, reduce the 6Fh value. o The compiler uses address 00h to 0Fh for working registers o Address range 10h to 1Fh is the working register group reserved for first level interrupt o If more than 1 level of interrupt nesting is needed by the application, the 20h must be increased by 10h for every additional nesting level. |
|
Link URL |
| Does ALLDATASHEET help your business so far? [ DONATE ] |
About Alldatasheet | Advertisement | Contact us | Privacy Policy | Link to Datasheet | Link Exchange | Manufacturer List All Rights Reserved©Alldatasheet.com |
| Russian : Alldatasheetru.com | Korean : Alldatasheet.co.kr | Spanish : Alldatasheet.es | French : Alldatasheet.fr | Italian : Alldatasheetit.com Portuguese : Alldatasheetpt.com | Polish : Alldatasheet.pl | Vietnamese : Alldatasheet.vn Indian : Alldatasheet.in | Mexican : Alldatasheet.com.mx | British : Alldatasheet.co.uk | New Zealand : Alldatasheet.co.nz |
|
Family Site : ic2ic.com |
icmetro.com |