Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't transmitt on attiny85 @1Mhz #53

Open
TheStaticTurtle opened this issue Jun 25, 2019 · 2 comments
Open

Can't transmitt on attiny85 @1Mhz #53

TheStaticTurtle opened this issue Jun 25, 2019 · 2 comments

Comments

@TheStaticTurtle
Copy link

Here is my bootloader config:

Clock: "1 Mhz (internal)"
LTO: "Disabled"
B.D.O Level: "B.D.O Disabled"
Timer 1 clock "CPU"
Save EPPROM: "EPPROM retained"

Here's my code:

#include <Manchester.h>

#define TX_PIN 3

uint8_t data[20] = {11, '1','2', '3', '4', '5', '6', '7', '8', '9','1','2','3','4','5','6','7','8','9'};

void setup() 
{
  pinMode(0, OUTPUT);
  digitalWrite(0, HIGH);
  man.workAround1MhzTinyCore(); //add this in order for transmitter to work with 1Mhz Attiny85/84
  man.setupTransmit(TX_PIN, MAN_300);
  digitalWrite(0, LOW);
  delay(2000);
}
 
uint8_t datalength=2;   //at least two data
// the loop function runs over and over again forever
void loop() 
{
  data[0] = datalength;
  
  digitalWrite(0, HIGH);
  man.transmitArray(datalength, data);
  delay(100);
  man.transmitArray(datalength, data);
  delay(100);
  man.transmitArray(datalength, data);
  digitalWrite(0, LOW);
  
  delay(5000);
  datalength++;
  if(datalength>18) datalength=2;
}

And the attiny dosnen't transmit when I use the 1Mhz however when I select 8MHz i works fine. Any idea ?

@TheStaticTurtle
Copy link
Author

(Also using delay is off I need to put a delay of 5000ms to get an actual delay of 1sec)

@MainWire
Copy link

Hi,
I also have the same problem, with the same configuration and transmit speed.
I really need my attiny at 1MHZ, is there any available solution, other than the man.workAround1MhzTinyCore(); ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants