Arduino Forum
>
Development
>
Other Software Development
>
Software serial library using hardware interrupt
Print
Go Down
Pages:
[1]
Topic: Software serial library using hardware interrupt
(Read 766 times)
previous topic
-
next topic
hansibull
God Member
Posts: 702
Karma: 232
[add]
likes to program Arduinos!
Software serial library using hardware interrupt
Jun 03, 2016, 04:30 pm
Hi!
Does there exist a software serial library that works on microcontrollers without PCINT? The ATmega64 and ATmega128 have 8 "general" interrupt pins, but no PCINT.
MightyCore - ATmega1284, mega644, mega324, mega164, mega32, mega16, mega8535
Github.com/MCUdude/MightyCore
MiniCore - ATmega8, mega48, mega88, mega168, mega328
Github.com/MCUdude/MiniCore
Robin2
Brattain Member
Posts: 70,514
Karma: 3641
[add]
Re: Software serial library using hardware interrupt
#1
Jun 03, 2016, 04:48 pm
My
Yet Another Software Serial
(written for an Uno) uses the external interrupts. Maybe it could be adapted to meet your requirement.
...R
Two or three hours spent thinking and reading documentation solves most programming problems.
CrossRoads
Global Moderator
Unlimited Eagle board sizes available.
Brattain Member
Posts: 46,166
Karma: 2101
[add]
Author of "Arduino for Teens". Available for Design & Build services. Now with Unlimited Eagle board sizes!
http://www.crossroadsfencing.com/BobuinoRev17/
Re: Software serial library using hardware interrupt
#2
Jun 03, 2016, 06:09 pm
Or change to a compatible device that does have PCINTs, like the Atmega1281 or 2561.
Designing & building electrical circuits for over 25 years. Screw Shield for Mega/Due/Uno, Bobuino with ATMega1284P, & other '328P & '1284P creations & offerings at my website.
hansibull
God Member
Posts: 702
Karma: 232
[add]
likes to program Arduinos!
Re: Software serial library using hardware interrupt
#3
Jun 03, 2016, 10:18 pm
Quote from: CrossRoads on Jun 03, 2016, 06:09 pm
Or change to a compatible device that does have PCINTs, like the Atmega1281 or 2561.
No, that's not an option. The ATmega64/128 are much cheaper, and should fit most applications where 4kb of RAM
MightyCore - ATmega1284, mega644, mega324, mega164, mega32, mega16, mega8535
Github.com/MCUdude/MightyCore
MiniCore - ATmega8, mega48, mega88, mega168, mega328
Github.com/MCUdude/MiniCore
Print
Go Up
Pages:
[1]
Loading...