ramoneb
Newbie level 6
**broken link removed**
where is the problem ?
Code:
sfr sbit Mmc_Chip_Select at RC0_bit;
sfr sbit Mmc_Chip_Select_Direction at TRISC0_bit;
int i;
void main() {
ADCON1 |= 0x0F;
CMCON |= 7;
trisa = 0x00;
trisc=0b00000000;
trisb=0b00000001;
i=1;
SPI1_Init_Advanced(_SPI_MASTER_OSC_DIV64, _SPI_DATA_SAMPLE_MIDDLE, _SPI_CLK_IDLE_LOW, _SPI_LOW_2_HIGH);
porta=0b00000001;
while(i==1)
{
i=Mmc_Init();
} porta=0b00000000;
}
where is the problem ?