-
09-07-2023 #11
In my case, I have spare input ports on my Arduino so no need to emulate a pot - I'm using the pot connected to the Arduino's ADC anyway to give an internal 0-255 to represent desired temperature - so using the processor means a SMOP(*) only needed.
For the Hitachi processor, though, not so sure. Had a quick look at data sheet last night (my, that thing's old!) and it looks as if it has the potential for a couple of interrupt lines but not sure if they would trigger on level change in either direction or just one. I would try to do as much as possible in the CPU and avoid external circuitry, though.
(*) Simple Matter Of Programming
-
10-07-2023 #12
-
14-07-2023 #13
You configure the interrupt on either leading or trailing edge - so the interrupt occurs on a transition on one phase - the other phase is steady state at this point. The interrupt is essentially the "clock" to increment or decrement the counter. The state of the second phase, either 0 or 1 determines whether to increment or decrement.
Thread Information
Users Browsing this Thread
There are currently 2 users browsing this thread. (0 members and 2 guests)
Similar Threads
-
Spindle pulses on shutting down.
By John11668 in forum General ElectronicsReplies: 6Last Post: 22-08-2020, 11:45 AM -
Basic 540 CNC. Motors skipping pulses?
By Skydeals in forum General ElectronicsReplies: 3Last Post: 18-10-2014, 06:56 PM -
Do you make stuff with knobs on?
By D.C. in forum General ElectronicsReplies: 1Last Post: 20-02-2013, 11:04 PM -
servo control vs stepper control
By Peter. in forum Motor Drivers & ControllersReplies: 24Last Post: 17-09-2012, 08:36 AM -
G-Code into stepper driver pulses?
By HankMcSpank in forum Computer SoftwareReplies: 5Last Post: 09-01-2010, 12:55 PM
Bookmarks