Post Created date
AM modulator
Back in the tube days, all the CBs were plate-modulated (transformer).  Typically the same transformer was used for receiver audio output and transmitter modulation.  ...
Sunday, 19 September 2021 - 14:47
Copying Lower data type to higher data type
awneil wrote: kk6gm wrote:Never use 8 bits when 8 bits will do. You mean 16 when 8 will do?   This is all good for 8-bit processors, but possibly not so much for larger...
Friday, 17 September 2021 - 14:15
Time Delay for making pin an input with pullup?
nikm wrote:Yup, 1us works That could be on the ragged edge.  Max pullup is specified as 50k.  Assuming 20pf chip and wiring capacitance, that's a time constant of...
Thursday, 16 September 2021 - 22:51
Copying Lower data type to higher data type
ka7ehk wrote: Its one of those type conversion things that catches me when I don't expect it. My rule is to never use a signed data type unless you REALLY need to handle negative...
Thursday, 16 September 2021 - 22:16
Time Delay for making pin an input with pullup?
Brian Fairchild wrote:Of course, you can do away with any delay whatsoever by rearranging the code to move the test of the pin further away from the initialisation. I'm sure there...
Thursday, 16 September 2021 - 14:26
Circular bit shift with LED's
kte86 wrote:Well without the delay they are flickering so fast that it looks like they are just on all the time but I will try and place the delay elsewhere. count = get_a_count...
Tuesday, 14 September 2021 - 16:38
Timer interrupts not being called in time?
You are correct, that the interrupt will cause the ISR to run immediately (within one instruction) no matter what the main code is doing, as long as interrupts are enabled.  ...
Sunday, 12 September 2021 - 15:50
Button not working
thientran1602 wrote: so I shouldn't put sei() in there, right?   Not in the ISR
Tuesday, 7 September 2021 - 14:39
Rate-monotonic scheduling
P1 executes every 8 (let's say milliseconds) and runs for 1 (ms).  P2 executes every 5ms and runs for 2ms.  P3 executes every 10ms and runs for 2ms.  Based on the...
Thursday, 2 September 2021 - 14:25
Unable to get interrupts to work on attiny814
Not familiar with that chip, but nothing in your code stands out.  I see it deals with manually clearing the interrupt flag, that's good.   Have you examined the...
Tuesday, 31 August 2021 - 18:58
ATTiny13 interrupt subroutine to control LED misbehavior
Polar Bear wrote:At this moment I do not see how delay_counter can get corrupted Here are a couple of ways, in pseudo-code: //main code for (x = N) store [x], lo(N...
Sunday, 29 August 2021 - 21:50
ATTiny13 interrupt subroutine to control LED misbehavior
Polar Bear wrote: void delay(uint16_t d) { delay_counter = d; while( delay_counter ); } This is a classic problem.  In particular, your use of delay_counter without...
Sunday, 29 August 2021 - 04:07

Pages