Forum - MCS Electronics

 

FAQFAQ SearchSearch RegisterRegister Log inLog in

Search found 720 matches
www.mcselec.com Forum Index
Author Message
  Topic: atmega32u4 and timer interrupt
EDC

Replies: 7
Views: 329

PostForum: BASCOM-AVR   Posted: Tue Jun 29, 2021 3:03 pm   Subject: atmega32u4 and timer interrupt
Code slightly modified for clarity and working just fine.

https://www.mcselec.com/userpix/22760_logs_1.jpg



'$programmer = 3 'External prog avr109 ...
  Topic: atmega32u4 and timer interrupt
EDC

Replies: 7
Views: 329

PostForum: BASCOM-AVR   Posted: Tue Jun 29, 2021 12:30 pm   Subject: atmega32u4 and timer interrupt
It can be easly tested in the simulator. HWSTACK is too low. Also "Set Chb" does nothing because you can`t write into PIN register. Try "Portd = Portd Or &B0000_0011 "

Code for simulator b ...
  Topic: Error on com port 2 when acquiring GPS
EDC

Replies: 11
Views: 482

PostForum: BASCOM-AVR   Posted: Fri May 21, 2021 11:15 pm   Subject: Error on com port 2 when acquiring GPS
Lets start about enable the Code Explorer... -->View->Enable Code Explorer.
Then Right Click of the Mouse/Touchpad and->Show errrors
I dont know why this is not enabled by default. Tells mu ...
  Topic: I2C BUS question
EDC

Replies: 5
Views: 381

PostForum: BASCOM-AVR   Posted: Fri May 07, 2021 9:10 am   Subject: I2C BUS question
There are specialized chips for that such of "address conflicts"
If this is only hobby "one or two units" project then use TCA9548A or simillar.
Only if cost of one of the "thousants" piece matter ...
  Topic: Bascom 2083
EDC

Replies: 12
Views: 864

PostForum: BASCOM-AVR   Posted: Tue Apr 20, 2021 11:29 am   Subject: Bascom 2083
@JC Replace with Zadig newest Windows Winusb v43 driver for MKII with this showed on the screen Wink
I must do this every Win10 update ... so today I take a screenshot. Enjoy Very Happy

https://www.mcselec. ...
  Topic: Question about RC5 without getRC5 "2083 ENHANCED"
EDC

Replies: 8
Views: 427

PostForum: BASCOM-AVR   Posted: Sun Mar 21, 2021 9:06 pm   Subject: Question about RC5 without getRC5 "2083 ENHANCED"
Any usage of Baud, Print etc. will set TXEN RXEN of USART and override PORT/PIN functions. Remove Baud and Print`s if not used.
If you only want print then PD.0 can be "released" by UCSRB.RXEN = 0 co ...
  Topic: GetADC Conversion time on mega328
EDC

Replies: 13
Views: 774

PostForum: BASCOM-AVR   Posted: Wed Mar 17, 2021 6:42 am   Subject: GetADC Conversion time on mega328
In the programm you dont need to wait for the conversion...
This can even be a Interrupt source but if not needed then maybe this will be sufficient.
Simplified version below...


Do

'-------- ...
  Topic: GetADC Conversion time on mega328
EDC

Replies: 13
Views: 774

PostForum: BASCOM-AVR   Posted: Sat Mar 13, 2021 7:27 pm   Subject: GetADC Conversion time on mega328
Do you must probe more than one input? This is really question.
  Topic: Interrupt overflows being missed?
EDC

Replies: 29
Views: 1309

PostForum: BASCOM-AVR   Posted: Sat Mar 06, 2021 7:16 am   Subject: Interrupt overflows being missed?
Please enable Code Explorer for runtime code checking during programming.
There are TimerInterruptFlagRegister`s TIFR`s for every timer not TIVR`s.
https://www.mcselec.com/userpix/22760_screen_1.jpg
  Topic: var=PINx dynamic
EDC

Replies: 6
Views: 418

PostForum: BASCOM-AVR   Posted: Wed Mar 03, 2021 5:12 am   Subject: var=PINx dynamic
I make mistake here Very Happy
  Topic: var=PINx dynamic
EDC

Replies: 6
Views: 418

PostForum: BASCOM-AVR   Posted: Wed Mar 03, 2021 4:05 am   Subject: var=PINx dynamic
I dont investigate it but it is obvious that you cant set PINx.... you can only set PORTx or DDRx
  Topic: var=PINx dynamic
EDC

Replies: 6
Views: 418

PostForum: BASCOM-AVR   Posted: Wed Mar 03, 2021 1:48 am   Subject: var=PINx dynamic
For what chip because any may be addressed differently....Mega Xmega? Offset?
  Topic: Interrupt overflows being missed?
EDC

Replies: 29
Views: 1309

PostForum: BASCOM-AVR   Posted: Mon Mar 01, 2021 8:53 pm   Subject: Interrupt overflows being missed?
Yes. I didn't read the whole topic in depth. Maybe this is not the best uC for this job but this can be done.
What are minimum and maximum RPM?
If two impulses are for one revolution then this will ...
  Topic: Interrupt overflows being missed?
EDC

Replies: 29
Views: 1309

PostForum: BASCOM-AVR   Posted: Mon Mar 01, 2021 7:26 pm   Subject: Interrupt overflows being missed?
Timer2 or any Timer configured in Bascom dont need command "Start Timer". They start automatically. Command Start Timer is used only if you Stop Timer to start them again. So Timer2 is working for shu ...
  Topic: Interrupt overflows being missed?
EDC

Replies: 29
Views: 1309

PostForum: BASCOM-AVR   Posted: Mon Mar 01, 2021 2:07 pm   Subject: Interrupt overflows being missed?
Hello. Take a look on this code. It is based/mixed from those codes -> https://www.mcselec.com/index2.php?option=com_forum&Itemid=59&page=viewtopic&t=14403&highlight=freq+duty.

T ...
 
Page 2 of 48 Goto page Previous  1, 2, 3, ... 46, 47, 48  Next
All times are GMT + 1 Hour
Jump to: