Author |
Message |
Topic: Representing ports numerically? |
teccs
Replies: 4
Views: 403
|
Forum: BASCOM-AVR Posted: Wed Apr 08, 2020 7:23 pm Subject: Processor is ATMEGA 2560 |
Thank you for the reply.
I can use any numbering scheme or logic that would work well.
Code is below.
DO
FOR X = 0 to 7
Call ReadADC(X)
ADCValue(X) = ADCCount ... |
Topic: Representing ports numerically? |
teccs
Replies: 4
Views: 403
|
Forum: BASCOM-AVR Posted: Wed Apr 08, 2020 7:05 pm Subject: Representing ports numerically? |
In my code, I receive a number via serial port. Based on that number the code will turn a port on or off. For example, if 1 is received, turn port G.1 off. If 2 is received, turn port G.1 on.
I ... |
Topic: Pin Change Interrupt 22 on ATMEGA 1284 |
teccs
Replies: 3
Views: 255
|
Forum: BASCOM-AVR Posted: Wed Feb 27, 2019 11:50 pm Subject: Thank you. |
I appreciate the hand holding. I stayed up very late figuring this out.
I did not want to post a reply until I had programmed it and checked it.
Those boys at ATMEL are very smart! Amazing ho ... |
Topic: Pin Change Interrupt 22 on ATMEGA 1284 |
teccs
Replies: 3
Views: 255
|
Forum: BASCOM-AVR Posted: Wed Feb 27, 2019 5:17 am Subject: Pin Change Interrupt 22 on ATMEGA 1284 |
My understanding is that most of the pins on the ATMEGA microcontrollers can be used as pin change interrupts.
I have written this code which gives me unknown interrupt and unknown interrupt source e ... |
Topic: Bascom 2080 / USBASP programmer / ATMEGA328PB |
teccs
Replies: 6
Views: 1771
|
Forum: BASCOM-AVR Posted: Wed Oct 10, 2018 6:33 am Subject: 2.0.8.1 Same error with ATMEGA 168 and ATMEGA 1284P |
I clicked on Manual Program and then clicked on Identify Chip.
Same error on ATMEGA 168 and ATMEGA 1284P.
Not programming anything, just identifying the chip. Will this cause me any problems wi ... |
Topic: using variable for config port |
teccs
Replies: 1
Views: 270
|
Forum: BASCOM-AVR Posted: Mon Feb 05, 2018 4:06 am Subject: using variable for config port |
From this post:
https://www.mcselec.com/index.php//music/index2.php?option=com_forum&Itemid=59&page=viewtopic&p=56937&sid=eada654c94e83a5fc9188066297f5ae2
I hoped I could do this:
... |
Topic: Arduino Mega 2560 R3 and Uno R3 getting error |
teccs
Replies: 1
Views: 3272
|
Forum: BASCOM-ARDUINO Posted: Sat May 27, 2017 6:29 am Subject: Arduino Mega 2560 R3 and Uno R3 getting error |
I have followed the directions here:
https://avrhelp.mcselec.com/index.html?arduino.htm
Error is stk500_recv() programmer is not responding.
Tried different baud rates, both arduino and arduino ... |
Topic: Getting 2 microcontrollers to talk to each other |
teccs
Replies: 4
Views: 476
|
Forum: BASCOM-AVR Posted: Sat Jan 14, 2017 9:53 pm Subject: Thank you |
That worked. Code is now:
$crystal = 18432000 'microcontroller clock frequency
$regfile = "m1284pdef.dat" 'th ... |
Topic: Getting 2 microcontrollers to talk to each other |
teccs
Replies: 4
Views: 476
|
Forum: BASCOM-AVR Posted: Sat Jan 14, 2017 9:27 pm Subject: Still not working |
Hi Evert,
Thank you for the reply.
I wish I could say that this fixed it, but it is still behaving the same. Any other ideas? |
Topic: Getting 2 microcontrollers to talk to each other |
teccs
Replies: 4
Views: 476
|
Forum: BASCOM-AVR Posted: Sat Jan 14, 2017 3:43 pm Subject: Getting 2 microcontrollers to talk to each other |
I have 2 atmega 1284p's which I am trying to get to communicate together via serial.
Two serial ports on each chip are used. RXD0 and TXD0 are connected to a PC via RS485 USB Converter. That is wor ... |
Topic: Atmega1284p rxd0 100pf capacitor required? |
teccs
Replies: 8
Views: 483
|
Forum: BASCOM-AVR Posted: Sat Jan 14, 2017 12:29 pm Subject: Thanks for the reply |
At 581 pages, knowing the datasheet is a handful. I thought I had a handle on what was needed.
I have many responsibilities. Unfortunately this electronics project is only one of them. |
Topic: Atmega1284p rxd0 100pf capacitor required? |
teccs
Replies: 8
Views: 483
|
Forum: BASCOM-AVR Posted: Sat Jan 14, 2017 9:23 am Subject: Low pass filter |
One of the things that will be needed for the low pass filter design would be that I am using 19,200 baud serial data on these lines. Any assistance with the low pass filter values would be appreciat ... |
Topic: Atmega1284p rxd0 100pf capacitor required? |
teccs
Replies: 8
Views: 483
|
Forum: BASCOM-AVR Posted: Sat Jan 14, 2017 9:06 am Subject: Full swing oscillator? |
Thanks for the replies. I wish I had the option of changing anything such as crystal frequency, but I already have 150 pcbs made and populated. No changes are possible there.
I do have an interconn ... |
Topic: Atmega1284p rxd0 100pf capacitor required? |
teccs
Replies: 8
Views: 483
|
Forum: BASCOM-AVR Posted: Sat Jan 14, 2017 6:00 am Subject: Atmega1284p rxd0 100pf capacitor required? |
I read online that:
"There is a well known problem with rxd0 on the atmega 1284p that requires a 100pf cap to ground."
That was posted here: http://www.mcselec.com/index2.php?option=com_forum& ... |
Topic: Help with converting this C code to BASCOM |
teccs
Replies: 5
Views: 290
|
Forum: BASCOM-AVR Posted: Sat Apr 16, 2016 12:19 pm Subject: Thank you. |
I did not notice the comments. It's a little late.
Thanks again. |
|