Forum - MCS Electronics

 

FAQFAQ SearchSearch RegisterRegister Log inLog in

Search found 731 matches
www.mcselec.com Forum Index
Author Message
  Topic: update the microprocessor firmware
EDC

Replies: 4
Views: 216

PostForum: BASCOM-AVR   Posted: Mon Jan 10, 2022 9:54 am   Subject: update the microprocessor firmware
For remote upgrade I have VPS server in the cloud.
My devices time to time check if new firmware is released. If so then they download Xtea encrypted BIN file into SDCARD or some memory/flash.
If do ...
  Topic: Insertchar is different in 2085 as in 2084
EDC

Replies: 7
Views: 201

PostForum: BASCOM-AVR   Posted: Thu Jan 06, 2022 5:36 pm   Subject: Insertchar is different in 2085 as in 2084
First step->

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

You can always back because you have copy Wink

Second step->

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

Third-> ...
  Topic: lcd char problem
EDC

Replies: 8
Views: 163

PostForum: BASCOM-AVR   Posted: Mon Jan 03, 2022 8:52 pm   Subject: lcd char problem
Old config file means XML file from previous version of Bascom. XML file keeps all the user settings but sometimes you want to reset it into default.
To reset this settings (and keep backup if you wa ...
  Topic: RFM69 simple to use library and code example
EDC

Replies: 15
Views: 4138

PostForum: Share your working BASCOM-AVR code here   Posted: Mon Jan 03, 2022 8:23 pm   Subject: RFM69 simple to use library and code example
I dont remember all the dependencies but after quick look into the code to use demo you should only adjust TIMER2 COMPARE2 or any Timer you want to 1ms @8MHz. Then this demo should work like it was pr ...
  Topic: BasCom-AVR and AVR128DB28
EDC

Replies: 11
Views: 506

PostForum: BASCOM-AVR   Posted: Sat Dec 25, 2021 8:04 pm   Subject: BasCom-AVR and AVR128DB28
I dont want to be offtopic.
I use $programmer when Im working on two uC at the same time. For example Xmega as a master for some other AVR. Then $programmer is my fav option Very Happy
Two codes can be mai ...
  Topic: BasCom-AVR and AVR128DB28
EDC

Replies: 11
Views: 506

PostForum: BASCOM-AVR   Posted: Sat Dec 25, 2021 10:00 am   Subject: BasCom-AVR and AVR128DB28
Because I use a lot of programmers, I really like the option in IDE $programmer.
The new help lacked information that MCS UPDI is 26 (I`ve check this in my XML settings after setting this prog)
May ...
  Topic: Problem with Data-Lines
EDC

Replies: 4
Views: 106

PostForum: BASCOM-AVR   Posted: Fri Dec 24, 2021 12:29 pm   Subject: Problem with Data-Lines
Better hit F1 in the Bascom and type "ASCII chart".
Then you realize that 41 in decimal means ")" and capital "A" uses 65 Wink
BTW. You can always use "Data "A" but there still will be zero at the en ...
  Topic: Problem with Data-Lines
EDC

Replies: 4
Views: 106

PostForum: BASCOM-AVR   Posted: Fri Dec 24, 2021 10:16 am   Subject: Problem with Data-Lines
Do you read the Help about "Data" statement? I suppose not.

From the Help:
Integer and Word constants must end with the %-sign.

Long and Dword constants must end with the &-sign.

Single ...
  Topic: Version 2084
EDC

Replies: 16
Views: 1579

PostForum: BASCOM-AVR   Posted: Fri Dec 17, 2021 6:58 pm   Subject: Version 2084
Your attached code compiles just fine on my Win10 Proff. Tested on 2084.
https://www.mcselec.com/userpix/22760_28042805TEST_1.jpg
  Topic: OLIMEX AVR-ISP-MK2 Programmer, issues?
EDC

Replies: 9
Views: 282

PostForum: BASCOM-AVR   Posted: Thu Dec 16, 2021 10:22 pm   Subject: OLIMEX AVR-ISP-MK2 Programmer, issues?
https://www.mcselec.com/userpix/22760_mkII_m128_2.jpg
I esspecially test MK II with M128 and it work fine for me.
My settings are:
https://www.mcselec.com/userpix/22760_mk2set_1.jpg
  Topic: Multiple LCD-Libs in one Program
EDC

Replies: 6
Views: 225

PostForum: BASCOM-AVR   Posted: Thu Dec 16, 2021 9:53 am   Subject: Multiple LCD-Libs in one Program
I2C is not much slower for such type of displays (alphanumerical). You can take a look for 17sec video how it perform
-> https://drive.google.com/open?id=0ByTGnTHgAjlzQ1VFTUFxd0VHSG8

But for d ...
  Topic: Master Modbus error on ATMega2560
EDC

Replies: 8
Views: 251

PostForum: BASCOM-AVR   Posted: Tue Nov 30, 2021 5:15 am   Subject: Master Modbus error on ATMega2560
I dont know yet why this happen but know the quick workaround . There is five in the morning here so I dont drink any coffe today yet Very Happy
If you open the m2560def.dat and mod "uarts" from 4 to 2 then ...
  Topic: compilation error: Rainbow
EDC

Replies: 5
Views: 120

PostForum: BASCOM-AVR   Posted: Mon Nov 29, 2021 9:46 pm   Subject: compilation error: Rainbow
In my 2084 attached code compiles just fine. Maybe you open Rainbow library in Bascom without setting "Dont reformat extension LIB DAT RPT" then try to reinstal Bascom for overwrite the library or cop ...
  Topic: MCP79520 RTC over SPI with Bascom
EDC

Replies: 6
Views: 1683

PostForum: Share your working BASCOM-AVR code here   Posted: Wed Nov 24, 2021 8:51 pm   Subject: MCP79520 RTC over SPI with Bascom
For reasons beyond my control, I had to postpone the project using this RTC.
Now Im working wit it again and one very interesting issue came out.
This RTC dont work on battery hahahahaha Very Happy

Third ...
  Topic: PWM: how to set prescale seperately?
EDC

Replies: 4
Views: 295

PostForum: BASCOM-AVR   Posted: Tue Nov 02, 2021 10:57 am   Subject: PWM: how to set prescale seperately?
Try it. Should work.

Dim Pwm_kanal4_ee As Eram Byte
Dim Pwm_kanal5_ee As Eram Byte
Dim Pwm_prescale_ee As Eram Byte

Const P1 = &B000_001
Const P8 = &B000_010
Const P64 = &B000_01 ...
 
Page 1 of 49 Goto page 1, 2, 3 ... 47, 48, 49  Next
All times are GMT + 1 Hour
Jump to: