| Electronic Components Datasheet Search |
|
AN4623 Datasheet(PDF) 13 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
AN4623 Datasheet(HTML) 13 Page - STMicroelectronics |
|
13 / 16 page ![]() DocID027178 Rev 1 13/16 AN4623 Source code example 14 Appendix A Source code example Main file code example: /***************************************************************** * PROJECT : Sphaero JDC Example * FILE : main.c * * DESCRIPTION : * * COPYRIGHT :(c) 2014, Freescale & STMicroelectronics * * VERSION : 1.0 * DATE : 11/12/2014 * AUTHOR : Alessandro Polizzi * HISTORY : ******************************************************************/ #include "..\platform\typedefs.h" #include "SPC574S60L.h" #include "spc57_init.h" /******* Macros and Prototypes **********/ void JDC_Init(void); #define INT_IRQ_INIT(irq_number, priority)INTC.PSR[irq_number].R = 0x8000 | priority; #define JDC_JOUT_INT 675 #define JDC_JOUT_INT_PRIORITY 10 #define MAX_BUFFER 10 //******* Variables ********************/ //Buffer containing the RAM variable address to monitor uint32_t buffer[MAX_BUFFER] = {0x30, 0x31, 0x32, 0x33, 0x34, 0x35, 0x36, 0x37, 0x38, 0x39}; uint32_t nbuffer = 0;//buffer index //Main function void main(void) { JDC_Init();//Init JDC INT_IRQ_INIT(JDC_JOUT_INT, JDC_JOUT_INT_PRIORITY ); //Set priority for JDC JOUT interrupt JDC.JOUT_IPS.R = buffer[nbuffer]; //Set first time JOUT register to activate monitor process |
|
|
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 |