Hi... Multiple Interrupts in GPIO -I can configurate most than one GPIO Pin to generate a Interruption, All those pins had the interrupt vector of 23! To know which pin make the Interruption I must read the register IPR (Interrupt Pending Register). But Im using the software Drivers of SDK with CW, and I dont have acess to IPR value using ioctl-command driver. So, how can I do to acess to a specific register (to read or write to/from a variable) using C or ASM instructions. -The memory of DSP56f803EVM as Flas/Ram Program Memory and Flash/Ram data memory, To acess to Flash data memory, I must develop some functions to write in flsh memory, or CW suports some kind of notation to indicate that variable is stored in Flash Data Memory? Thanks Antonio Macedo |
|
Multiple Interrupts in GPIO and Flash Memory Data
Started by ●October 9, 2003
Reply by ●October 9, 20032003-10-09
Hi, > -I can configurate most than one GPIO Pin to generate a Interruption, > All those pins had the interrupt vector of 23! To know which pin make > the Interruption I must read the register IPR (Interrupt Pending > Register). But Im using the software Drivers of SDK with CW, and I > dont have acess to IPR value using ioctl-command driver. So, how can > I do to acess to a specific register (to read or write to/from a > variable) using C or ASM instructions. you can use following code: ... unsigned short *ptr = 0xfffb /* that address of IPR */ unsigned short ipr; /* you can read it by dereferencing ... */ ipr = *ipr_ptr; /* do whatever you need and write it back */ *ipr_ptr = ipr; ... > > -The memory of DSP56f803EVM as Flas/Ram Program Memory and Flash/Ram > data memory, To acess to Flash data memory, I must develop some > functions to write in flsh memory, or CW suports some kind of > notation to indicate that variable is stored in Flash Data Memory? I don't know CW :( so you'll have to wait for somebody other to answer. Jan |