Help me write a program (hex file) for microcontroller PIC16F873. I want to can-bus signal converted to analog signal. That ports (PIC16F873) RB1, RB2, RB3, RB4, RB5, RB6 output analog signal when received special digital signal.
Example:
id address 00200066h, 0bit - XX, 1bit - XX, 2bit - XX, 3bit - XX, 4bit - XX, 5bit - XX, 6bit - XX, 7bit - 77, --- BUTTON VOLUME (+) UP PUSHED (on steering wheel) --- output port RB1 analog signal;
id address 00200066h, 0bit - XX, 1bit - XX, 2bit - XX, 3bit - XX, 4bit - XX, 5bit - XX, 6bit - XX, 7bit - 7F, --- RELEASED ---no action;
Electrical circuit example in image. Please help me!
Example:
id address 00200066h, 0bit - XX, 1bit - XX, 2bit - XX, 3bit - XX, 4bit - XX, 5bit - XX, 6bit - XX, 7bit - 77, --- BUTTON VOLUME (+) UP PUSHED (on steering wheel) --- output port RB1 analog signal;
id address 00200066h, 0bit - XX, 1bit - XX, 2bit - XX, 3bit - XX, 4bit - XX, 5bit - XX, 6bit - XX, 7bit - 7F, --- RELEASED ---no action;
Electrical circuit example in image. Please help me!