Use I/O port as interrupt
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2008-11-27 1:43 AM
Posted on November 27, 2008 at 10:43
Use I/O port as interrupt
4 REPLIES 4
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2011-05-17 6:02 AM
Posted on May 17, 2011 at 15:02
Dera all
I met a problem when used I/O port as interrupt.The documentation(RM0016) says STM8S has up to 32 interrupt vectors fixed by hardware,which is the Reference manul for STM8S microcontroller family.And when use STVD , stm8_interrupt_vector.c has 32 interrupt too.But at page 110 in RM0016, interrupt mapping only has 27 interrupt.There are not external interrupt for Port F,G,H,I. If I want to use a pin of Port H to be the interrupt,which registers I should config? And which interrupt vector in vector table in stm8_interrupt_vector.c I should use?Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2011-05-17 6:02 AM
Posted on May 17, 2011 at 15:02
Hi Yuhao,
for the STM8S product you can only configure Port A,B,C,D and E, in vector table the Last 4 vectors are not used so not mapped to any peripheral interrupt. best regardsOptions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2011-05-17 6:02 AM
Posted on May 17, 2011 at 15:02
Hi Yuhao,
for the STM8S product you can only configure Port A,B,C,D and E, in vector table the Last 4 vectors are not used so not mapped to any peripheral interrupt. best regardsOptions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2011-05-17 6:02 AM
Posted on May 17, 2011 at 15:02
Hi Bassinux
Thanks very much!