Forum - MCS Electronics

 

FAQFAQ SearchSearch RegisterRegister Log inLog in

Search found 720 matches
www.mcselec.com Forum Index
Author Message
  Topic: Compile problem - Incorrect Number Of Paremeters
EDC

Replies: 3
Views: 279

PostForum: BASCOM-AVR   Posted: Thu Feb 25, 2021 7:57 am   Subject: Compile problem - Incorrect Number Of Paremeters
Or simply...
Call Read_token(p , B , A)
will fix it too.
  Topic: Rainbow INstruction difficulty on the XTiny 402
EDC

Replies: 36
Views: 1158

PostForum: BASCOM-AVR   Posted: Fri Feb 05, 2021 12:09 pm   Subject: Rainbow INstruction difficulty on the XTiny 402
I was reply to this post with my morning cup of coffe when next I must leave work and must get some things done.
I suppose that offset may differ form Xmega but TO can check this too Very Happy
Also Im pref ...
  Topic: Rainbow INstruction difficulty on the XTiny 402
EDC

Replies: 36
Views: 1158

PostForum: BASCOM-AVR   Posted: Fri Feb 05, 2021 7:36 am   Subject: Rainbow INstruction difficulty on the XTiny 402
Xtinys are similar to Xmegas so maybe you can try to cheat the lib Very Happy
In library there are only one statement "#IF _XMEGA=0" in line 170 so not much to work with.

So maybe copy the lib and save on ...
  Topic: dim Jbit as bit
EDC

Replies: 7
Views: 426

PostForum: BASCOM-AVR   Posted: Sun Jan 24, 2021 10:57 am   Subject: dim Jbit as bit
If you have enough spare SRAM bytes then use bytes for flags. They are quicker and routines take less flash space.

Sometime ago in someone program for Tiny2313 where was no spare flash place left i ...
  Topic: Atmega328pb - cannot get any LED's to turn on!?
EDC

Replies: 23
Views: 979

PostForum: BASCOM-AVR   Posted: Thu Jan 07, 2021 9:32 am   Subject: Atmega328pb - cannot get any LED's to turn on!?
Why not to ground pin 21 on the schematic? Very Happy
Your code copied from this forum is working -> see pics.

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

https://www.mcselec.com/userpix/22 ...
  Topic: Kill large number of files
EDC

Replies: 12
Views: 785

PostForum: BASCOM-AVR   Posted: Wed Dec 09, 2020 4:09 pm   Subject: Kill large number of files
If you realy look what is happen when you Delete file then you realize that this area of FAT is marked as "permitted to write" and your file is only marked "as erased".
but it is steel there. It is o ...
  Topic: Kill large number of files
EDC

Replies: 12
Views: 785

PostForum: BASCOM-AVR   Posted: Mon Dec 07, 2020 3:10 pm   Subject: Kill large number of files
Maybe plan those killings. Very Happy
Simply kill the first file and you are ready to write into it again "fresh" data. Then set the kill_flag and in the next loop kill slowly the rest of the files.
After t ...
  Topic: Timer does not start immediately
EDC

Replies: 6
Views: 409

PostForum: BASCOM-AVR   Posted: Sat Nov 28, 2020 7:41 am   Subject: Timer does not start immediately
Load Timer means 65535 - Cpwmfreq
So first Compare will fire Cpwmfreq * 2 I think because first Timer must count ex. 30 into 0 and then next 30 to Compare. Think twice Very Happy
  Topic: HX711
EDC

Replies: 25
Views: 2005

PostForum: BASCOM-AVR   Posted: Sat Nov 28, 2020 7:34 am   Subject: HX711
Hello. Im also using HX711 in some of my projects but I cant wait for the measure (SERIALS/DOS,ETH/temperatures etc.). So I handle it similarly like DS18B20.

I cut this code from one of bigger proj ...
  Topic: Timer does not start immediately
EDC

Replies: 6
Views: 409

PostForum: BASCOM-AVR   Posted: Thu Nov 26, 2020 7:30 pm   Subject: Timer does not start immediately
If your timer is for example at 4000 and you set 30 then compare match dont fire till Timer reach its end which is 65535 >4s @1024 prescale.
So maybe try Timer1 = 0 so after 30 compare will arrive ...
  Topic: SD card/USART bootloader
EDC

Replies: 1
Views: 2203

PostForum: Share your working BASCOM-AVR code here   Posted: Tue Nov 24, 2020 4:16 am   Subject: SD card/USART bootloader
Hello.
If you use SD card in your device you can upgrade firmware from it.
If you also have internet connection then you can even upgrade your device remotely.
So if you, for example, have Mega2560 ...
  Topic: Error compiling PUT and GET using HW SPID Solved) - Problem
EDC

Replies: 24
Views: 1320

PostForum: BASCOM-AVR   Posted: Tue Nov 24, 2020 2:21 am   Subject: Error compiling PUT and GET using HW SPID Solved) - Problem
I think you miss some basics.
If you have new file which is always binary but with sometimes with another extension then its len depend on how many bytes was entered previously which is NULL/NADA/ZER ...
  Topic: MCP79520 RTC over SPI with Bascom
EDC

Replies: 6
Views: 1642

PostForum: Share your working BASCOM-AVR code here   Posted: Sun Oct 25, 2020 7:28 am   Subject: MCP79520 RTC over SPI with Bascom
Cause my AVR device is also I2C slave. In this project Im also using AVR-DOS and W5500 Ethernet chip so..for SPI it is not a problem...
  Topic: MCP79520 RTC over SPI with Bascom
EDC

Replies: 6
Views: 1642

PostForum: Share your working BASCOM-AVR code here   Posted: Fri Oct 23, 2020 10:36 pm   Subject: MCP79520 RTC over SPI with Bascom
Okay. ::::::Very Happy
I need it and must use it ...and with bascom it was easy Very Happy
  Topic: MCP79520 RTC over SPI with Bascom
EDC

Replies: 6
Views: 1642

PostForum: Share your working BASCOM-AVR code here   Posted: Thu Oct 22, 2020 4:27 pm   Subject: MCP79520 RTC over SPI with Bascom
Hello.
This is the basic example of handling this RTC with the Bascom syntax like $Tme & $Date
It work over SPI not I2C.

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

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