Author |
Message |
Topic: encoder |
glena
Replies: 7
Views: 1140
|
Forum: BASCOM-AVR Posted: Sat Mar 18, 2017 3:28 pm Subject: encoder |
A long time ago I wrote an interrupt based encoder for a robot that had two motors that I wanted to control.
See here: http://www.mcselec.com/index2.php?option=com_forum&Itemid=59&page=vi ... |
Topic: help on intrrupt |
glena
Replies: 4
Views: 839
|
Forum: BASCOM-AVR Unsupported versions Posted: Fri Jul 22, 2016 2:47 pm Subject: help on intrrupt |
Not sure if your interested in counting the number of pulses as time goes on, counting the number of pulses within a time frame or counting the width of a pulse.
If its counting the number of pul ... |
Topic: Waveplayer stereo |
glena
Replies: 10
Views: 1099
|
Forum: BASCOM-AVR Posted: Fri May 06, 2016 7:02 pm Subject: Waveplayer stereo |
Interesting. Like you say the channel sounds good but the second channel sounds very strange. Could you post the original wav file? Maybe I could try it and see if I have the same issue.
Also no ... |
Topic: Read Single (question) |
glena
Replies: 2
Views: 255
|
Forum: BASCOM-AVR Posted: Tue Mar 29, 2016 6:09 pm Subject: Read Single (question) |
In your data statements you need to change the % to a ! so the compiler knows its a single.
-Glen
Integer and Word constants must end with the %-sign.
Long and Dword constants must end with the ... |
Topic: LCD displays libraries - index |
glena
Replies: 19
Views: 44425
|
Forum: Share your working BASCOM-AVR code here Posted: Tue Oct 06, 2015 7:22 pm Subject: LCD displays libraries - index |
Is there a current library that will work with this display? If not is there a library that could be updated to work with it?
Thanks,
-Glen |
Topic: LCD displays libraries - index |
glena
Replies: 19
Views: 44425
|
Forum: Share your working BASCOM-AVR code here Posted: Tue Oct 06, 2015 3:08 am Subject: LCD displays libraries - index |
Hello,
Are there any libraries that work with the cheap, 1.8inch Serial SPI TFT LCD Module Displays? They seem to use SPI but I was not able to find a bascom lib for them.
This is what I bought ... |
Topic: A simple WAV file player from an SD card w/double buffering |
glena
Replies: 48
Views: 15447
|
Forum: Share your working BASCOM-AVR code here Posted: Wed May 13, 2015 8:22 pm Subject: A simple WAV file player from an SD card w/double buffering |
Netzman,
What 'copied' code are you referring to? The Simple Wav Player at the top of this thread was originally written by myself and not copied from anywhere else.
-Glen |
Topic: execute a subrotine after an interrupt |
glena
Replies: 5
Views: 935
|
Forum: BASCOM-AVR Posted: Fri Dec 05, 2014 10:04 pm Subject: execute a subrotine after an interrupt |
It sounds to me like timing here is critical and you are unable or its problematic to place this other sub code at the end of the isr that you are talking about.
One idea that might work, would b ... |
Topic: Serial Framing |
glena
Replies: 2
Views: 3289
|
Forum: BASCOM-AVR Archive Posted: Thu Oct 02, 2014 2:48 pm Subject: Serial Framing |
rossfl,
Here is what I would do but this is just an example and not at all tested but it should give you a starting point...
-Glen
'=====[ Compiler Directives ]=================== ... |
Topic: A simple WAV file player from an SD card w/double buffering |
glena
Replies: 48
Views: 15447
|
Forum: Share your working BASCOM-AVR code here Posted: Wed Dec 04, 2013 4:19 pm Subject: A simple WAV file player from an SD card w/double buffering |
I don't have any xmega parts so I don't know what would need to be changed but I'm sure it could be made to work.
Glen |
Topic: changing file date and time |
glena
Replies: 2
Views: 5175
|
Forum: AVR-DOS Posted: Sun Oct 20, 2013 1:32 pm Subject: changing file date and time |
Jeremy,
Files written or updated will get the current "system" real time. The issue is, it you don't setup the systems real time and use an interupt to update it then the time stamp that will be u ... |
Topic: How to increse frequency of PWM |
glena
Replies: 3
Views: 671
|
Forum: BASCOM-AVR Archive Posted: Tue Aug 06, 2013 8:50 pm Subject: How to increse frequency of PWM |
Normally - PWM cycle freq is crystal / (2^number of timer bits of resolution).
So for: (assuming system clock of 7372800Hz)
timer0 or 2 it would be 8 bits or (7372800 / 256) = 112.5Hz
time ... |
Topic: Test code for reading a L3G4200D triple axes gyro via I2C |
glena
Replies: 9
Views: 4856
|
Forum: Share your working BASCOM-AVR code here Posted: Wed Jul 24, 2013 6:04 am Subject: Test code for reading a L3G4200D triple axes gyro via I2C |
areefzack,
I don't remember. It just the raw data from the device so you will need to read the devices documentation.
The code is only meant to test reading the data from the device. Its not d ... |
Topic: Test code for reading a L3G4200D triple axes gyro via I2C |
glena
Replies: 9
Views: 4856
|
Forum: Share your working BASCOM-AVR code here Posted: Fri Jul 12, 2013 3:01 pm Subject: Test code for reading a L3G4200D triple axes gyro via I2C |
areefzack,
I would first un-comment the print "Starting" line and make sure its printing something.
'print "{027}[2J{027}[1;1H"; "Starting..."
-Glen |
Topic: Test code for reading a L3G4200D triple axes gyro via I2C |
glena
Replies: 9
Views: 4856
|
Forum: Share your working BASCOM-AVR code here Posted: Fri Jul 12, 2013 2:29 am Subject: Test code for reading a L3G4200D triple axes gyro via I2C |
areefzack,
Its just to scale the values and the using ANSI escape sequences to print at a position on the line to visually show the changes in value.
-Glen |
|