This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
25XX320 - Memoria Eeprom SPI 32Kb | |
Autor: Tiago | |
Blog: microcontrolandos.blogspot.com.br | |
Compilador: MikroC PRO PIC | |
*/ | |
//pinos | |
sbit SoftSpi_SDI at RB2_bit; | |
sbit SoftSpi_SDO at RB1_bit; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
RDA5807 - SINGLE-CHIP BROADCAST FM RADIO TUNER | |
Autor: Tiago | |
Blog: microcontrolandos.blogspot.com.br | |
Compilador: MikroC PRO PIC | |
*/ | |
#define RDA5807P_ADDRESS 0x20 | |
typedef struct |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
PROJETO: Radio FM com RDA5807P | |
MCU: PIC18F4550 | |
Compilador: MikroC PRO PIC | |
Autor: Tiago | |
Blog: microcontrolandos.blogspot.com.br | |
Bibliotecas utilizadas: RDA5807P, SSD1306, Conversions | |
*/ | |
/* pinos */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
25XX320 - Memoria Eeprom SPI 32Kb | |
Autor: Tiago | |
Blog: microcontrolandos.blogspot.com.br | |
Compilador: MikroC PRO PIC | |
*/ | |
/* Comandos */ | |
#define E25XX320_CMD_READ 0b00000011 //Read data from memory array beginning at selected address | |
#define E25XX320_CMD_WRITE 0b00000010 //Write data to memory array beginning at selected address |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Bootloader USB HID para microcontroladores PIC18F4550 e PIC18F2550 | |
Clock: 48MHz ( ? MHz + PLL ativado ) | |
Compilador: MikroC PRO PIC | |
Autor: Tiago | |
Blog: microcontrolandos.blogspot.com.br | |
*/ | |
#include <Built_in.h> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
MCP41XXX/MCP42XXX - Single/Dual Digital Potenciometer with SPI interface | |
Autor: Tiago | |
Compilador: MikroC PRO PIC | |
Criado em: 17/10/2014 por Tiago | |
Modificado em: 23/01/2015 por Tiago | |
- Suporte para o MCP42XXX | |
- Comandos disponíveis para o usuário | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
LCD595 - LCD com 74HC595( Shift Register ) | |
Autor: Tiago | |
Compilador: MikroC PRO PIC | |
Criado em: 18/06/2014 por Tiago | |
Modificado em: 23/01/2015 por Tiago | |
- Adicionado as funções: LCD_Chr_CP e LCD_Out_CP | |
- Alterado as funções LCD_Chr e LCD_Out | |
- Alterado o nome da função LCD595_Write4Bit para LCD595_Send | |
/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
EXEMPLO | |
MCU: PIC12F675 | |
Clock: INTOSC 4MHz | |
Compilador: MikroC PRO PIC | |
Autor: Tiago | |
Bibliotecas Utilizadas: LCD595, Conversions, Lcd_Constants | |
Ligação dos pinos: | |
74HC595 <-> LCD |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Toda vez que pressionarmos o botão, o LED irá alternar-se. | |
*/ | |
//Interrupção Externa do pino INT0 | |
void interrupcaoExterna0() iv IVT_ADDR_INT0 | |
{ | |
PINB.B0 = 1; //alternamos o valor do pino PB0 | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Interrupção Externa do pino INT0 | |
void interrupcaoExterna0() iv IVT_ADDR_INT0 | |
{ | |
//tratamento da interrpção... | |
} |
OlderNewer