New Member

Post Reply
Posts: 2
Joined: Sun Oct 22, 2017 12:34 am

New Member

Post by karl » Sun Oct 22, 2017 1:57 am

Retired s/w engineer, 74 yrs old.
I was a PDP11 systems programmer in assembly.
Lots of experience in Hardware & assembly on many of the early uPs (8080s thru 68000s).
Amateur Radio Operator (NI9T) since 1985.
I am not very proficient in C or C++, I'm a little better in Pascal.
By the way, my favorite 8 bit uP is the MC6809. a very good, if not very fast, uP to code in assembly.
The Hatachi HD6309 is a more efficient, faster version of the 6809 with an extended instruction set,
Within the last 10 years:
MC68HC11A8: breadboarded a system & implemented FORTH.
MSP430: mostly in assembly, Very small projects.
8052: same as above.
TI's Tiva TMS4C123: in C, I did the Univ of Texas on-line uP course.
ATMEGA 328 arduino: various small projects in C.
ATTINY 85: same as above.
FPGA: used a Internet available emulation of a 6809 to implement FORTH, as the 6809 implements FORTH efficiently.
Bunch of other stuff, too trivial to mention.

I have several of the cheap "blue pill" STM32F103C8T6 boards.
Used arduino w/STLINK to do the Blinky thing. Used systick to generate the time delays directly(no interrupts).
Fixed the USB pullup resister value problem(1K8 resister added between A12 and 3V3).

Does anyone have an "interrupt # to Digital I/O #" list or a more automated way to do that available or can point to it
so that I can do external interrupts? . I want to use external interrupts to interface a rotary encoder.

Posts: 1976
Joined: Mon Oct 19, 2015 12:06 am
Location: Munich, Germany

Re: New Member

Post by stevestrong » Sun Oct 22, 2017 8:11 am

To use external interrupts, see: ... rupts.html
or libmaple core reference here: ... upts.h#L69
The on-chip timers have the rotary encoder detection capability, example here: ... ncoder.ino
or reference here: ... mer.h#L573

Posts: 2
Joined: Sun Oct 22, 2017 12:34 am

Re: New Member, interrupt problem SOLVED!

Post by karl » Sun Oct 22, 2017 10:09 pm

Perfect, you pointed to exactly the info I required.
I don't know why I forgot the timer's ability to interface rotary encoders, thanks for the additional reminder.

Post Reply