16
General discussion / 28C3 who will be there?
Anyone here who will be at this years 28C3? Ian?
Just curious... ;) Thinking of visiting it this year!
Open Source Hardware
This section allows you to view all Messages made by this member. Note that you can only see Messages made in areas you currently have access to.
HiZ>~
Disconnect any devices
Connect (ADC to +3.3V)
Space to continue
Ctrl
AUX OK
MODE LED OK
PULLUP H OK
PULLUP L OK
VREG OK
EEPROM
SCL OK
SDA OK
WP OK
ACKADC and supply
Vusb(4.91) OK
5V(4.93) OK
5V0 VPU(4.38) FAIL
ADC(3.29) OK
3.3V(3.27) OK
3V3 VPU(2.77) FAIL
Bus high
MOSI OK
CLK OK
MISO OK
CS OK
Bus Hi-Z 0
MOSI OK
CLK OK
MISO OK
CS OK
Bus Hi-Z 1
MOSI OK
CLK OK
MISO OK
CS FAIL
MODE, VREG, and USB LEDs should be on!
Any key to exit
Found 3 errors.
#define SPIFLASH_CS_TRIS (TRISCbits.TRISC7)
#define SPIFLASH_CS_IO (PORTCbits.RC7)
#define SPIFLASH_SCK_TRIS (TRISCbits.TRISC6)
#define SPIFLASH_SDI_TRIS (TRISBbits.TRISB9)
#define SPIFLASH_SDI_IO (PORTBbits.RB9)
#define SPIFLASH_SDO_TRIS (TRISCbits.TRISC8)
#define SPIFLASH_SPI_IF (IFS2bits.SPI2IF)
#define SPIFLASH_SSPBUF (SPI2BUF)
#define SPIFLASH_SPICON1 (SPI2CON1)
#define SPIFLASH_SPICON1bits (SPI2CON1bits)
#define SPIFLASH_SPICON2 (SPI2CON2)
#define SPIFLASH_SPISTAT (SPI2STAT)
#define SPIFLASH_SPISTATbits (SPI2STATbits)
#define time1 300
#define time2 900
void send_rf2(char* conf1)
{
int i, j;
j = 0;
for (j=0; j<5; j++){ // repeat sending 5 times. This is needed by the PT2272 receiver
for(i=0; i<12; i++){ // parse data from conf1 and send via RF (left to right)
switch (conf1[i]){ // one bit at a time!
case ('F'): { // send as float
RF=1;
__delay_us(time1);
RF=0;
__delay_us(time2);
RF=1;
__delay_us(time2);
RF=0;
__delay_us(time1);
break;
}
case ('0'): { // send as 0
RF=1;
__delay_us(time1);
RF=0;
__delay_us(time2);
RF=1;
__delay_us(time1);
RF=0;
__delay_us(time2);
break;
}
case ('1'): { // send as 1
RF=1;
__delay_us(time2);
RF=0;
__delay_us(time1);
RF=1;
__delay_us(time2);
RF=0;
__delay_us(time1);
break;
}
}
}
RF=1; // sync
__delay_us(time1);
RF=0;
__delay_us(9690); // weird time, I know...
}
}