I am trying to make a project. I have pwm chipset.
In datasheet it says first two bit for read or write. Next 6 bit for adress and then next 24 bits frequence information.
I made a program in arduino uno. But it is not work. I want to ask someone is it possible to send 24 bit as my program? Is should sending I don't know and there is no way to control to am I send program or not. Any suggestion?
#include <SPI.h>
void setup() {
pinMode(10, OUTPUT);
SPI.begin();
SPI.setBitOrder(MSBFIRST);
}
void loop() {
digitalWrite(10, LOW);
delay(100);
SPI.transfer(B10000011);
SPI.transfer(B00000000);
SPI.transfer(B00000000);
SPI.transfer(B00000010);
digitalWrite(10, HIGH);
delay(1000);
}