Jump to content

Recommended Posts

Posted

Boas,

Preciso de comunicar com um potenciómetro digital  com uma pic da série 18f através de SPI.

Precisava de umas rotinas em C, utilizo o compilador da high tech picc18 versão 9.66.

Posted

... Precisava de umas rotinas em C ...

Ok, eu começo ...

void rotina_numero_1(void) {
    /* void */
}

What have you tried?

Não respondo a dúvidas por PM

A minha bola de cristal está para compor; deve ficar pronta para a semana.

Torna os teus tópicos mais atractivos e legíveis usando a tag CODE para colorir o código!

Posted

Ok, eu começo ...

void rotina_numero_1(void) {
    /* void */
}

Eu adiciono algo mais:


void send_byte(unsigned char toSend) {
//...
}

unsigned char receive_byte() {
//...
}

include <ai se te avio>

Mãe () {

}

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site you accept our Terms of Use and Privacy Policy. We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.