Quantcast
Channel: MCS Electronics Forum
Browsing all 20577 articles
Browse latest View live
↧

Share your working BASCOM-AVR code here : Morse code transmit : REPLY

thanks for sharing. It is very clear from the code how it works.

View Article


AVR-DOS : Atmega128 adc+avrdos+text : NEWTOPIC

[size=18:a4229a20a6]hi It's my first topic in bascom I've written a program with bascom but there are amazing errors when i compile(simulate in proteus)! i did all the true works for enabling adc and...

View Article


BASCOM-AVR : Short configurable delays 1-16uS : REPLY

Yes I found in some cases select case is the best choice I found this with the web-server code and in the matrix clock for infra-red decoding also as Mark has pointed out waitus Regards Paul

View Article

BASCOM-AVR : Atmega128 adc+avrdos+text : NEWTOPIC

[size=18:50410d3b78]hi It's my first topic in bascom I've written a program with bascom but there are amazing errors when i compile(simulate in proteus)! i did all the true works for enabling adc and...

View Article

BASCOM-AVR : Beware Cheap USBasp clone : REPLY

Hi, OK, I've reprogramed the USBasp programmer using a different programmer and it's now seen as a USBasp in windows device manager using the hex file from the site above. I still need to get it...

View Article


BASCOM-AVR : KS0108 Display: Trouble with higher clock speed : REPLY

Hi! I had similar problems with DEM displays. On the other hand - no problems with Winstar display (of corse both with same controller). I solved the problem by adding some simple delay on several...

View Article

BASCOM-AVR : Short configurable delays 1-16uS : REPLY

Hi Mark; Yes, I feel quite stupid - I've been through the Language Reference several times per day for a couple of weeks, and I never noticed the Waitus statement. Live and learn. I've taken some time...

View Article

BASCOM-AVR : Short configurable delays 1-16uS : REPLY

Hi, Couldn't you use a timer and sit in a busy loop until the time is reached? I don't have access to a Bascom system at the moment but I could imagine that might work. Regards Ian Dobson

View Article


BASCOM-AVR : Short configurable delays 1-16uS : REPLY

Hi Ian; That's what I did for all the other timing intervals. I have several 40uS and longer, and one is so long I do all my busy work and servicing routines for the entire program loop while waiting...

View Article


BASCOM-AVR : Short configurable delays 1-16uS : REPLY

Hi, Then the only way would be to just use nops to delay the code. Just work out how long a NOP command takes and just string several together. So for 1us you need 8 commands so maybe an rcall to an...

View Article

BASCOM-AVR : ERAM - default values : NEWTOPIC

Hi, I would like to use internal EEPROM with ERAM. At the beginning of my code will be a default values. The problem is, that after restart MCU a default values will be always written. I would like to...

View Article

BASCOM-AVR : Short configurable delays 1-16uS : REPLY

in the sim you can right click the mouse above the cycles label and then choose 'reset'. set a breakpoint at the waitus line. then reset and step with F8. in 2076 various methods depending on the...

View Article

BASCOM-AVR : ERAM - default values : REPLY

Hi, you can try check for value in 1 of the EB() if emty its 255 and it setup defaults 12345 [code:1:01f4fa679c]If Eb(5) = 255 Then 'only if eb(5) is 255 (emty) For I = 1 To 5 Eb(i) = I ' default...

View Article


BASCOM-AVR : ERAM - default values : REPLY

Hi Or maybe create a checksum that you also save in the eeprom. And just compare the checksum to the data read. Something like:- [code:1:4a776f80c8]'--The following parameters are written to the...

View Article

BASCOM-AVR : ERAM - default values : REPLY

Hello guys, thanks a lot. It is clear for me.

View Article


Announcements : MCS WIKI : NEWTOPIC

MCS now has a WIKI :D You can find the WIKI at [url]http://wiki.mcselec.com/MCS_Wiki_Main_entry[/url] The BASCOM-AVR manual is a copy of the on line help. A number of German BASCOM guru's have...

View Article

BASCOM-AVR : Writing code to run multiple tasks at same time : NEWTOPIC

Hello Bascom friends, i have been using bascom for a while to do some home projects and a few projects at work also. All the projects i have worked on until now are low level projects, What I mean by...

View Article


BASCOM-AVR : Writing code to run multiple tasks at same time : REPLY

Hi, AVR's aren't multitasking so you can do several things at once. What you could do is run several things one after the other very quickly*. To do something like that you should use a serial input...

View Article

BASCOM-AVR : Writing code to run multiple tasks at same time : REPLY

If you are limited to a specific board then the above post applies. If multitasking is required, a second or more MCUs would do the job. In one of my projects are 7 and increasing MCUs (mixed Atmega...

View Article

Share your working BASCOM-AVR code here : 8 chan ServoController updated for...

Zsolti, It sounds like there is an issue with bad data getting to the controller. It might be that the RC oscillator is off some casing errors but more likely some data is being sent incorrectly. I...

View Article
Browsing all 20577 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>