Author |
Message |
Topic: attiny13 adc to pwm |
EDC
Replies: 25
Views: 2099
|
Forum: BASCOM-AVR Posted: Fri Apr 15, 2016 9:51 pm Subject: attiny13 adc to pwm |
Attiny13 have hardware PWM channels on pins PB0 and PB1. On these pins generating PWM waves cost micro nothing because built-in timer working.
If You want PWM signal on other pins then you must gen ... |
Topic: KamPROG programmer and eeprom |
EDC
Replies: 3
Views: 148
|
Forum: BASCOM-AVR Posted: Thu Apr 07, 2016 9:21 pm Subject: KamPROG programmer and eeprom |
See picture attached. |
Topic: 1.8" SPI QDtech 128x160 |
EDC
Replies: 7
Views: 2433
|
Forum: Share your working BASCOM-AVR code here Posted: Sat Apr 02, 2016 11:46 am Subject: 1.8" SPI QDtech 128x160 |
Hello. I got this one from my colegue to "start this running"
So I do some research and on HKipnik example for similar ST7735 I change initialisation routine.
RGB order must be fixed I think because ... |
Topic: BascomAVR 2.7.0.9 |
EDC
Replies: 14
Views: 1360
|
Forum: BASCOM-AVR Posted: Thu Mar 31, 2016 4:31 pm Subject: BascomAVR 2.7.0.9 |
This happends when you try to work with new "noname1" file and regfile is not specified.
Simply chose correct regfile and save code with chosen filename and everything should work just fine
I saw ... |
Topic: attiny13 adc to pwm |
EDC
Replies: 25
Views: 2099
|
Forum: BASCOM-AVR Posted: Fri Mar 25, 2016 9:59 pm Subject: attiny13 adc to pwm |
Try this and let me know how it work
You must be logged in to see schematic.
$regfile = "attiny13.dat"
$crystal = 9600000
$hwstack = 12
$swstack 6
$framesize = 16
' Full Range ... |
Topic: "Yes" and "No" should be reserved |
EDC
Replies: 0
Views: 292
|
Forum: BASCOM-AVR Posted: Wed Mar 16, 2016 12:24 pm Subject: "Yes" and "No" should be reserved |
Hello.
Yesterday I want to quick port a piece of my working code to another and it took me a half hour to discover what compiler want from my SPI config command
Code below is only a short examp ... |
Topic: pwm frequentie |
EDC
Replies: 4
Views: 616
|
Forum: BASCOM-AVR Posted: Tue Mar 08, 2016 11:26 pm Subject: pwm frequentie |
"Normally" Bascom set PWM to Phase Correct Mode. You can change one bit and Timer should be in Fast PWM Mode
Config Timer1 = Pwm , Pwm = 8 , Compare B Pwm = Clear Up , Prescale = 1
TCCR1B.WGM12 = 1 ... |
Topic: 2079 Beta |
EDC
Replies: 49
Views: 5532
|
Forum: BASCOM-AVR Posted: Sun Mar 06, 2016 12:14 pm Subject: 2079 Beta |
Compiler 2078/2079
Config Submode = New
If Getrc5() function is in Sub only then need one dummy read in main code.
Without this you get : Error : 61 Label not found [_SYSTEM_T0_ISR] |
Topic: INT0 issue |
EDC
Replies: 5
Views: 546
|
Forum: BASCOM-AVR Posted: Sun Mar 06, 2016 11:41 am Subject: INT0 issue |
GETRC5() is also function that can slow down code if is called in main loop frequently. So not bad idea, I think, is to connect IR receiver into external Interrupt pin.
But if You comment out "Gifr.i ... |
Topic: How many subroutines and functions Support? |
EDC
Replies: 12
Views: 599
|
Forum: BASCOM-AVR Posted: Thu Mar 03, 2016 2:28 pm Subject: How many subroutines and functions Support? |
Do you mean ">= (Greater Than or Equal To)" ?
Your "=>" should generate error |
Topic: ATtiny841 Config ADC reference |
EDC
Replies: 3
Views: 321
|
Forum: BASCOM-AVR Posted: Tue Mar 01, 2016 1:35 pm Subject: ATtiny841 Config ADC reference |
Please look how I resolve parameter names.
First you must block reformating files with specified extensions. So *.dat files, *.lib files and *.lbx will not be altered by Bascom if I only view t ... |
Topic: Port reading problem MEGA162 |
EDC
Replies: 15
Views: 615
|
Forum: BASCOM-AVR Posted: Tue Feb 23, 2016 11:16 pm Subject: Port reading problem MEGA162 |
You dont get transistor bases because LED in segments lead only one direction.
But case is more complicated. You dont want to light any segment when button is pushed and hold So 4k7 resistor is us ... |
Topic: Port reading problem MEGA162 |
EDC
Replies: 15
Views: 615
|
Forum: BASCOM-AVR Posted: Tue Feb 23, 2016 9:28 pm Subject: Port reading problem MEGA162 |
This is propably design like this (see partial schematic)
I programm this with interrupts from all Timers without a problem
Timer0 every 2ms... but also Timer2 for Servo and even interrupt ever ... |
Topic: If statement problem with ATmega328P |
EDC
Replies: 10
Views: 3755
|
Forum: BASCOM-AVR Unsupported versions Posted: Fri Feb 19, 2016 5:49 pm Subject: If statement problem with ATmega328P |
I worked at 8091 series till now and I have a question...
Do you have pull down resistors in your design? If not then HI state of inputs may be recognized randomly
In AVR "better" way is to recog ... |
Topic: Controller SSD1305, SSD1306 or SSD1309 |
EDC
Replies: 5
Views: 2579
|
Forum: Share your working BASCOM-AVR code here Posted: Wed Feb 10, 2016 9:57 pm Subject: Controller SSD1305, SSD1306 or SSD1309 |
If anyone wondered where the logo in my programs came from .
Watch video as XMEGA displays animations on SSD1306 through I2C
Caged image is caused by poor camera. The display looks and displays ... |
|