Forum - MCS Electronics

 

FAQFAQ SearchSearch RegisterRegister Log inLog in

Search found 5144 matches
www.mcselec.com Forum Index
Author Message
  Topic: AVR128DB32 and ...64 What great chips!
albertsm

Replies: 16
Views: 786

PostForum: BASCOM-AVR   Posted: Thu Apr 29, 2021 10:28 am   Subject: AVR128DB32 and ...64 What great chips!
some weeks ago i finished mega4809 support. so the next update will support this.
originally i wanted to increase the xtiny add on each time a new platform was added.
but the megaX (we named it me ...
  Topic: AVR128DB32 and ...64 What great chips!
albertsm

Replies: 16
Views: 786

PostForum: BASCOM-AVR   Posted: Thu Apr 29, 2021 10:28 am   Subject: AVR128DB32 and ...64 What great chips!
some weeks ago i finished mega4809 support. so the next update will support this.
originally i wanted to increase the xtiny add on each time a new platform was added.
but the megaX (we named it me ...
  Topic: Experiment with i2c Multibus and SSD1306 OLED
albertsm

Replies: 13
Views: 350

PostForum: BASCOM-AVR   Posted: Mon Apr 26, 2021 7:31 pm   Subject: Experiment with i2c Multibus and SSD1306 OLED
ok, since the following registers are used by the i2c driver they need to be saved as well :

R20
R21
R22
R23

so when you save/restore these, it should work.
  Topic: Experiment with i2c Multibus and SSD1306 OLED
albertsm

Replies: 13
Views: 350

PostForum: BASCOM-AVR   Posted: Mon Apr 26, 2021 7:18 pm   Subject: Experiment with i2c Multibus and SSD1306 OLED
ok, that means the init works.
i will check the rest.
  Topic: Experiment with i2c Multibus and SSD1306 OLED
albertsm

Replies: 13
Views: 350

PostForum: BASCOM-AVR   Posted: Mon Apr 26, 2021 3:37 pm   Subject: Experiment with i2c Multibus and SSD1306 OLED
ok, well done.
there seem to be some more regs that need to be saved.
For the init procedrue this is R21

this code ;

ldi r21,26 ; 26 bytes
_lcd_init_lp:
call ...
  Topic: Experiment with i2c Multibus and SSD1306 OLED
albertsm

Replies: 13
Views: 350

PostForum: BASCOM-AVR   Posted: Mon Apr 26, 2021 3:24 pm   Subject: Experiment with i2c Multibus and SSD1306 OLED
that is an option too. but under normal conditions there is no need for the multibus lib to save registers. the whole idea of all high level commands is that they may trash all registers.
only when ...
  Topic: Experiment with i2c Multibus and SSD1306 OLED
albertsm

Replies: 13
Views: 350

PostForum: BASCOM-AVR   Posted: Mon Apr 26, 2021 12:27 pm   Subject: Experiment with i2c Multibus and SSD1306 OLED
the lcd lib was not written with multiple lcd in mind so it might need some changes.
your code looks good.
Also, for lcd speed is an issue so i assume that the hardware i2c is used.

i had a quic ...
  Topic: Experiment with i2c Multibus and SSD1306 OLED
albertsm

Replies: 13
Views: 350

PostForum: BASCOM-AVR   Posted: Mon Apr 26, 2021 8:36 am   Subject: Experiment with i2c Multibus and SSD1306 OLED
with i2c a device often can have multiple addresses. in that case you can use one bus and use different addresses to address the device.
but in case of an lcd it often has a fixed address. so one sol ...
  Topic: internal constants from a code
albertsm

Replies: 4
Views: 148

PostForum: BASCOM-AVR   Posted: Sat Apr 24, 2021 12:15 pm   Subject: internal constants from a code
i would recommend to use CONFIG COMx to set the baud rate.
and you can simply use it again to reset the baud.
or use baud statement.

and no you can not know the current speed based on a constant. ...
  Topic: Problem with Single variable
albertsm

Replies: 17
Views: 470

PostForum: BASCOM-AVR   Posted: Thu Apr 22, 2021 3:43 pm   Subject: Problem with Single variable

I was not trying to tell, as the phrase 'trying to' stands somehow for a rather failing approach.

I actually did tell.


please do not make this a word game.
  Topic: Problem with Single variable
albertsm

Replies: 17
Views: 470

PostForum: BASCOM-AVR   Posted: Thu Apr 22, 2021 9:43 am   Subject: Problem with Single variable
and i like to add that you can scale an integer :

Dim XC ,dif2 as ling

Xc_ = 8400
Dif2 = 7


here i multiplied with a factor of 10. but it could be 100 or 1000 too.
then use format() to ge ...
  Topic: Problem with Single variable
albertsm

Replies: 17
Views: 470

PostForum: BASCOM-AVR   Posted: Thu Apr 22, 2021 9:38 am   Subject: Problem with Single variable
your problems seems that you did not read the help. maybe because it is in English. But some good translators exist. also this forum has a search function, you could try it. although i admit in many c ...
  Topic: Bascom 2083
albertsm

Replies: 12
Views: 627

PostForum: BASCOM-AVR   Posted: Sat Apr 17, 2021 9:43 am   Subject: Bascom 2083
it runs on win10 and also on wine.
- install with (local) admin rights
- run with admin rights the first time
- reboot
- run as a normal user

when there is an error, just report it.

some t ...
  Topic: GUI-O Speed Controller
albertsm

Replies: 2
Views: 348

PostForum: Share your working BASCOM-AVR code here   Posted: Wed Apr 14, 2021 8:19 pm   Subject: GUI-O Speed Controller
Thank you for sharing and of course about the information about this.

I need to check out this HB100 radar sensor. Seems cool Smile
  Topic: GUI-O Datalogger
albertsm

Replies: 2
Views: 611

PostForum: Share your working BASCOM-AVR code here   Posted: Wed Apr 14, 2021 8:11 pm   Subject: GUI-O Datalogger
Thank you for sharing this. Very Happy
It is a great idea to use a phone for this. This GUI-O looks super. It is very versatile.
Thanks for posting the YT video.
 
Page 2 of 343 Goto page Previous  1, 2, 3, ... 341, 342, 343  Next
All times are GMT + 1 Hour
Jump to: