Author |
Message |
Topic: Current supply |
SZTRAD
Replies: 0
Views: 2855
|
Forum: Share your working BASCOM-AVR code here Posted: Fri Mar 12, 2021 4:25 pm Subject: Current supply |
Greetings
Next sample program for xttiny.
A simple current supply with a fuse.
He's using CCL,TCD,ACI,ADC,DAC, so we've compiled a little bit.
I was also asked for an idea scheme and what it m ... |
Topic: GetADC Conversion time on mega328 |
SZTRAD
Replies: 13
Views: 1130
|
Forum: BASCOM-AVR Posted: Fri Mar 12, 2021 8:21 am Subject: GetADC Conversion time on mega328 |
Or use a clone of the logic analyzer that does a slightly better job than the oscilloscope in this case.
The advantage is also the higher sampling frequency and the possibility of automatic bus deco ... |
Topic: GetADC Conversion time on mega328 |
SZTRAD
Replies: 13
Views: 1130
|
Forum: BASCOM-AVR Posted: Sun Mar 07, 2021 6:16 pm Subject: GetADC Conversion time on mega328 |
Hi
At this prescaler about 242us
If you change it to 64 so 171us
RS |
Topic: Interrupt overflows being missed? |
SZTRAD
Replies: 29
Views: 1831
|
Forum: BASCOM-AVR Posted: Sat Mar 06, 2021 12:01 pm Subject: Interrupt overflows being missed? |
I took your program and adjusted it a little bit.
I don't have time to compose a real application for testing, but it should probably work. All the settings are yours,so you know what you've been do ... |
Topic: Window Comparator Mode ADC0 |
SZTRAD
Replies: 2
Views: 2241
|
Forum: Share your working BASCOM-AVR code here Posted: Sat Mar 06, 2021 9:38 am Subject: Window Comparator Mode ADC0 |
Hi
A simple example of the ADC0 window comparator function.
I connected the two previously described PIT and EVENT systems to the ADC.
The program as designed to monitor the lion cell and can be ... |
Topic: var=PINx dynamic |
SZTRAD
Replies: 6
Views: 529
|
Forum: BASCOM-AVR Posted: Wed Mar 03, 2021 11:24 am Subject: var=PINx dynamic |
Hi,
I can't imagine what you need it for. Perhaps I can only think of creating a library. It works for output values and I used it but not in Bascom. I assume Bascom assigns translation registers ba ... |
Topic: Interrupt overflows being missed? |
SZTRAD
Replies: 29
Views: 1831
|
Forum: BASCOM-AVR Posted: Mon Mar 01, 2021 8:09 pm Subject: Interrupt overflows being missed? |
Witam EDC
ja to przeżyłem ponownie i zrozumiałem, ale dopiero po wysłaniu i nie będę masował pytania to nie byłoby fair. Chcę tylko powiedzieć, & ... |
Topic: Interrupt overflows being missed? |
SZTRAD
Replies: 29
Views: 1831
|
Forum: BASCOM-AVR Posted: Mon Mar 01, 2021 7:10 pm Subject: Interrupt overflows being missed? |
Hey, EDC
I confess, I don't know how this works.
Timer0 never overflows, so the interrupt doesn't start.
Timer2 won't start at all, or am I wrong? If I remember anything in mathematics, it shoul ... |
Topic: ischarwaiting and interrup [solved] |
SZTRAD
Replies: 5
Views: 738
|
Forum: BASCOM-AVR Posted: Sat Feb 27, 2021 8:49 am Subject: ischarwaiting and interrup [solved] |
Hello
colleague is right. The command tests the flag at position 7 of the status register.
If the ensuing loop is longer than the communication speed, the data will be lost. So, as colleague above ... |
Topic: Waveshare 4.2" E-paper display |
SZTRAD
Replies: 13
Views: 2413
|
Forum: BASCOM-AVR Posted: Thu Feb 25, 2021 2:42 pm Subject: Waveshare 4.2" E-paper display |
Hi
It works a little differently in color mode, but it doesn't matter now.
Depending on what you enter in registry 0 for BWR, then set the combination of VBD,DDX and CDI in registry 50. It controls ... |
Topic: Waveshare 4.2" E-paper display |
SZTRAD
Replies: 13
Views: 2413
|
Forum: BASCOM-AVR Posted: Wed Feb 24, 2021 9:18 pm Subject: Waveshare 4.2" E-paper display |
hello
Do you understand the code in "C"?
If you do, I'll wait a few days and try to write it down for AVR so you can bounce back. Unfortunately, it's not on my desk so I won't try it. But you'll b ... |
Topic: Waveshare 4.2" E-paper display |
SZTRAD
Replies: 13
Views: 2413
|
Forum: BASCOM-AVR Posted: Wed Feb 24, 2021 2:35 pm Subject: Waveshare 4.2" E-paper display |
Hi
Search the adafruit_GFX library and GxEPD2 implementation. Try to get inspiration.
It's quite well written and, I think, clearly written.
Since recovery is slow then you can also attach exter ... |
Topic: SPI and RGB LED tape |
SZTRAD
Replies: 0
Views: 2772
|
Forum: Share your working BASCOM-AVR code here Posted: Wed Feb 24, 2021 2:21 pm Subject: SPI and RGB LED tape |
Hi
The last time I pointed it out, I tried.
Control of the RGB LED tape using the SPI peripheral.
Theoretically, this method should be faster than using TCB, which I showed last time, but unfortu ... |
Topic: TCB0 Single Shot Mode |
SZTRAD
Replies: 2
Views: 2148
|
Forum: Share your working BASCOM-AVR code here Posted: Mon Feb 22, 2021 10:22 am Subject: TCB0 Single Shot Mode |
Hi
I forgot to rewrite it to the Bascom custom.
Yes WS2812. Should of course work WS2812C,2813,2813C,2811,OST34020,OSTW3535. It's all about adjusting the time.
RS |
Topic: TCB0 Single Shot Mode |
SZTRAD
Replies: 2
Views: 2148
|
Forum: Share your working BASCOM-AVR code here Posted: Mon Feb 22, 2021 8:56 am Subject: TCB0 Single Shot Mode |
Hi
I noticed that at TCB0 the manufacturer cloned the "single shot" function.
This involves generating a pulse of a given length without repeating.
The downside is that the operation of this func ... |
|