Forum - MCS Electronics

 

FAQFAQ SearchSearch RegisterRegister Log inLog in

Search found 711 matches
www.mcselec.com Forum Index
Author Message
  Topic: 7 digit LED Calculator, single, and double operation.
EDC

Replies: 2
Views: 126

PostForum: BASCOM-AVR   Posted: Thu Sep 09, 2021 7:48 pm   Subject: 7 digit LED Calculator, single, and double operation.
Maybe your Bascom needs an update because I dont see the problem in mine 2084 Very Happy

$regfile = "m328pdef.dat"
$crystal = 16000000
$hwstack=64
$swstack=64
$framesize = 128
$sim

Dim Nu ...
  Topic: Same .bin for XMEGA192A3U and XMEGA256A3U?
EDC

Replies: 3
Views: 97

PostForum: BASCOM-AVR   Posted: Mon Sep 06, 2021 7:23 pm   Subject: Same .bin for XMEGA192A3U and XMEGA256A3U?
It will write only till the end of BIN file with alignment into 128 Bytes at the end if for example there will be only 80 Bytes (because XMODEM protocol checksum). If BIN file for XM256 will be smalle ...
  Topic: Same .bin for XMEGA192A3U and XMEGA256A3U?
EDC

Replies: 3
Views: 97

PostForum: BASCOM-AVR   Posted: Mon Sep 06, 2021 6:51 pm   Subject: Same .bin for XMEGA192A3U and XMEGA256A3U?
Those XMegas (192 & 256) have the same amount of SRAM (16KB) so I think programs should work the same on both Very Happy
If amount of SRAM differ then only programs for smaller SRAM uC should work on big ...
  Topic: Register Descriptions MCU Control
EDC

Replies: 4
Views: 162

PostForum: BASCOM-AVR   Posted: Wed Sep 01, 2021 6:55 am   Subject: Register Descriptions MCU Control
Now this is a tested info Very Happy Reading ID and REV is simple. In signature you dont get such info.

https://www.mcselec.com/userpix/22760_devid_1.jpg
  Topic: Register Descriptions MCU Control
EDC

Replies: 4
Views: 162

PostForum: BASCOM-AVR   Posted: Tue Aug 31, 2021 5:27 pm   Subject: Register Descriptions MCU Control
I think you can easly read them like any other register because addresses for them are included in DAT files.
Simply Dim Helpb As Byte and then Helpb = MCU_DEVID0 or MCU_DEVID1 or MCU_DEVID2 and MCU_ ...
  Topic: How to alias a variable
EDC

Replies: 5
Views: 183

PostForum: BASCOM-AVR   Posted: Mon Jul 05, 2021 12:46 pm   Subject: How to alias a variable
Better try like this.

Dim Led_port As Byte '0-3 PORTA 4-7 PORTB
Dim Helpb As Byte

Ddra = Ddra Or &B0000_1111 'A0-A3 O ...
  Topic: atmega32u4 and timer interrupt
EDC

Replies: 7
Views: 205

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: 205

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: 338

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: 277

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: 708

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: 400

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: 722

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: 722

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: 1264

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
 
Page 1 of 48 Goto page 1, 2, 3 ... 46, 47, 48  Next
All times are GMT + 1 Hour
Jump to: