Assembler only Forum Now I'm going to start a thread called "GOOD TOPIC TITLE" and see how many responses it gets before the moderators get exasperated... S.
Monday, 2 November 2020 - 06:41
Apropos casting... Wayell, if regs.pc monotonically changes, there are six possibilities, none of which involves looping forever1:
1) regs.pc is negative and descending
1a)...
Sunday, 1 November 2020 - 19:32
Atmega with Stepper motor (DRVB885 driver) Further notes in. re. acceleration:
Stepper motors do very well with a nice step acceleration ramp. You can't just splat a high frequency on the 'step' pin and...
Saturday, 31 October 2020 - 09:59
Atmega with Stepper motor (DRVB885 driver)
digitalWrite(en_a_pin,1,&DDRD); // disable motorIf your comments are correct, that writing a '1' does indeed 'disable' the motor, I don't see it being re-enabled anywhere....
PCB ID Hardware or Firmware ? We're not trying to hide nuclear secrets from the Russians here. Encryption is very easy to do wrong, and very difficult to do right. By 'ID bit' and 'the bit' I...
Thursday, 29 October 2020 - 18:59
PCB ID Hardware or Firmware ? Maybe. But if they're independent analog circuits that really don't care what the MCU thinks, then the MCU need never know. Look at post #2 where it's just...
Thursday, 29 October 2020 - 18:25
PCB ID Hardware or Firmware ? Leads to a somewhat interesting question: Does the microcontroller (MCU) even need to know what kind of board it is put in? Given identical firmware, how would the MCU...
Rotary pulse encoder issue generating pulses Here's some cheerful pseudo-code. Putting it into AVR assembler is left as an exercise for the student:
Begin:
Counter = 0
If A is High, Go to A High Loop else
go to A Low...
Now I'm going to start a thread called "GOOD TOPIC TITLE" and see how many responses it gets before the moderators get exasperated... S.
Wayell, if regs.pc monotonically changes, there are six possibilities, none of which involves looping forever1: 1) regs.pc is negative and descending 1a)...
Further notes in. re. acceleration: Stepper motors do very well with a nice step acceleration ramp. You can't just splat a high frequency on the 'step' pin and...
digitalWrite(en_a_pin,1,&DDRD); // disable motorIf your comments are correct, that writing a '1' does indeed 'disable' the motor, I don't see it being re-enabled anywhere....
(My AVR designs topped out at about 200kHz. There may be ways more clever.)
As well you might - if the timer's slow enough. Howzabout 800kHz? Easily done in hardware, if not in an AVR. S.
We're not trying to hide nuclear secrets from the Russians here. Encryption is very easy to do wrong, and very difficult to do right. By 'ID bit' and 'the bit' I...
Maybe. But if they're independent analog circuits that really don't care what the MCU thinks, then the MCU need never know. Look at post #2 where it's just...
Leads to a somewhat interesting question: Does the microcontroller (MCU) even need to know what kind of board it is put in? Given identical firmware, how would the MCU...
Edited #13 to make this post irrelevant
Or you could do what clawson said. S.
Here's some cheerful pseudo-code. Putting it into AVR assembler is left as an exercise for the student: Begin: Counter = 0 If A is High, Go to A High Loop else go to A Low...
Pages