Forum - MCS Electronics

 

FAQFAQ SearchSearch RegisterRegister Log inLog in

Search found 4911 matches
www.mcselec.com Forum Index
Author Message
  Topic: Grey Code (possible bug / suggestion)
albertsm

Replies: 2
Views: 96

PostForum: BASCOM-AVR   Posted: Tue May 26, 2020 8:48 am   Subject: Grey Code (possible bug / suggestion)
EDC is right. it is just a tool to be used when the project is done.
It is important that when you find a problem you report it to support with a sample so it can be improved.
  Topic: ARDUINO UNO_USB_SERIAL MONITOR
albertsm

Replies: 13
Views: 158

PostForum: BASCOM-ARDUINO   Posted: Tue May 26, 2020 8:45 am   Subject: ARDUINO UNO_USB_SERIAL MONITOR
you use $regfile for a M328 while the programmer detects a M328P.
it would be the same if you use M128 and select M88.
it is visible in RED in the screen shots you made.
this means you need to a ...
  Topic: ARDUINO UNO_USB_SERIAL MONITOR
albertsm

Replies: 13
Views: 158

PostForum: BASCOM-ARDUINO   Posted: Mon May 25, 2020 7:21 pm   Subject: ARDUINO UNO_USB_SERIAL MONITOR
i recommend to look at your own screen shots. especial the one from the programmer and the red text. it gives a clear clue.
also, the simulator has nothing to do with this.
  Topic: ARDUINO UNO_USB_SERIAL MONITOR
albertsm

Replies: 13
Views: 158

PostForum: BASCOM-ARDUINO   Posted: Mon May 25, 2020 10:01 am   Subject: ARDUINO UNO_USB_SERIAL MONITOR
I have no clue what you mean.
But lets be clear : this forum is not for support on ARDUINO serial monitor or ARDUINO. It is for using BASCOM-AVR with arduino hardware.
If you use bascom and arduino ...
  Topic: grey code
albertsm

Replies: 6
Views: 468

PostForum: BASCOM-AVR   Posted: Thu May 21, 2020 7:05 pm   Subject: grey code
In fact I'm looking for an option to switch off "dead code detection", because it doesn't work properly. Is there a way to disable that feature?

It seems to work ok for me.
i would recommend to re ...
  Topic: Low(s) and High(s) functions
albertsm

Replies: 4
Views: 188

PostForum: BASCOM-AVR   Posted: Fri May 15, 2020 9:31 am   Subject: Low(s) and High(s) functions
While the AVR version is based on the 8051 version i had no idea that was missing.
you can create a sub like setLSB and setMSB and then pass the data. or indeed use overlay. but i think it will be si ...
  Topic: M1284P Odd Reset Issue
albertsm

Replies: 20
Views: 368

PostForum: BASCOM-AVR   Posted: Wed May 13, 2020 8:44 am   Subject: M1284P Odd Reset Issue
atmel support has been good. I got samples, the docs were ok, emails i sent were handled. But in am in the EU.
what was always clear is that their main interest is selling chips. The software they pr ...
  Topic: M1284P Odd Reset Issue
albertsm

Replies: 20
Views: 368

PostForum: BASCOM-AVR   Posted: Tue May 12, 2020 9:15 pm   Subject: M1284P Odd Reset Issue
you best contact microchip about it. this is a hardware problem, not related to the code or bascom-AVR
The errata does not show a problem but that does not mean much.
The problem could be caused by ...
  Topic: M1284P Odd Reset Issue
albertsm

Replies: 20
Views: 368

PostForum: BASCOM-AVR   Posted: Mon May 11, 2020 9:18 pm   Subject: M1284P Odd Reset Issue
you should first make sure that the essential parts are what you think they are.
then clean the board. depending on the used reflow cleaning (or not) there might be some residue left having influenc ...
  Topic: M1284P Odd Reset Issue
albertsm

Replies: 20
Views: 368

PostForum: BASCOM-AVR   Posted: Mon May 11, 2020 8:22 pm   Subject: M1284P Odd Reset Issue
so you use a crystal. which value ? and what kind of load ? what is the brand/datasheet?
and what value for the caps ?

you could try to swap the xtal from the working board to another and see if t ...
  Topic: M1284P Odd Reset Issue
albertsm

Replies: 20
Views: 368

PostForum: BASCOM-AVR   Posted: Mon May 11, 2020 7:50 pm   Subject: M1284P Odd Reset Issue
but how quick is the crystal stable when you turn the power on? and how quick is the 5V stable?

casing should not matter but... it might be the case that it is produced in a different plant with d ...
  Topic: M1284P Odd Reset Issue
albertsm

Replies: 20
Views: 368

PostForum: BASCOM-AVR   Posted: Mon May 11, 2020 7:32 pm   Subject: M1284P Odd Reset Issue
i do not know what kind of hardware you connected to the reset pin ?
but it is important not to leave out such important info.

do not put caps on the reset pin.
the internal pull up should be su ...
  Topic: Using both hardware and software TWI/I2C at the same time?
albertsm

Replies: 13
Views: 448

PostForum: BASCOM-AVR   Posted: Mon May 11, 2020 9:06 am   Subject: Using both hardware and software TWI/I2C at the same time?
you can use the multibus lib. it is intended for normal AVR like mega.
from the help :

While XMEGA supports multiple TWI busses, the normal AVR only supports on TWI or no I2C bus. The I2C_MULTIBUS ...
  Topic: ATMega1284P Config TIMER1
albertsm

Replies: 3
Views: 122

PostForum: BASCOM-AVR   Posted: Mon May 11, 2020 8:53 am   Subject: ATMega1284P Config TIMER1
actually you had : Compare A No_output which means that the the OCx pin will NOT be set to output mode. And that was not working correct : in your old code with the syntax you used the port should n ...
  Topic: Nextion and Bascom
albertsm

Replies: 21
Views: 954

PostForum: BASCOM Project Blog   Posted: Mon May 04, 2020 11:37 am   Subject: Nextion and Bascom
'size of array in r24 and r25
Sub Copydown(ar() As Byte , Byreg R24 As Word)
$asm
Loadadr Ar(1) , Z ; load address into r30 r31 ...
 
Page 1 of 328 Goto page 1, 2, 3 ... 326, 327, 328  Next
All times are GMT + 1 Hour
Jump to: