Forum - MCS Electronics

 

FAQFAQ SearchSearch RegisterRegister Log inLog in

Search found 84 matches
www.mcselec.com Forum Index
Author Message
  Topic: Interrupt overflows being missed?
SZTRAD

Replies: 27
Views: 532

PostForum: 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: 1
Views: 32

PostForum: 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: 146

PostForum: 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: 27
Views: 532

PostForum: 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: 27
Views: 532

PostForum: 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: 192

PostForum: 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: 247

PostForum: 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: 247

PostForum: 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: 247

PostForum: 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: 52

PostForum: 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: 69

PostForum: 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.Very Happy
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: 69

PostForum: 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 ...
  Topic: Do we want an Xmega based Arduino board?
SZTRAD

Replies: 12
Views: 168

PostForum: AVR   Posted: Wed Feb 17, 2021 10:53 am   Subject: Do we want an Xmega based Arduino board?
Hello Per
well so my opinion directly to the board why it is difficult to design it and why no one does it. The biggest problem is with analog inputs, which are also used as DI/DO. It's quite compli ...
  Topic: CURRENT MEASUREMENTS C.D. ARDUINO_ACS712
SZTRAD

Replies: 12
Views: 1255

PostForum: BASCOM-ARDUINO   Posted: Wed Feb 17, 2021 8:58 am   Subject: CURRENT MEASUREMENTS C.D. ARDUINO_ACS712
Hi
I assume you don't want to use another chip(I would choose something with differential inputs) Do you need to measure negative current or will you only measure positive current? You're using the ...
  Topic: PIT xttiny
SZTRAD

Replies: 1
Views: 97

PostForum: Share your working BASCOM-AVR code here   Posted: Sat Feb 13, 2021 12:20 pm   Subject: PIT xttiny
Hi All
The first simple example.
Simple multitasking when using PIT. A milis variable is created in which the current time is stored in milliseconds from the start of the program run. It is not a pu ...
 
Page 1 of 6 Goto page 1, 2, 3, 4, 5, 6  Next
All times are GMT + 1 Hour
Jump to: