Jump to content


  • Content Count

  • Joined

  • Last visited

Everything posted by BulentSelek

  1. Description Compiler does not generate function return code; Compiler version: Version 6.35 Target device: PIC16FXXX Here is the small code, --------------------------------------------- void spi_write( char b ) { unsigned char LOOPC; asm { MOVLW 0x08; MOVWF _LOOPC; L0: BCF _status, C; RLF _b, 1; BTFSC _status, C; goto L1; BCF _portb,0; goto L2; L1: BSF _portb,0; L2: BSF _portb,1; BCF _portb,1; DECFSZ _LOOPC, 1; goto L0; } }; void main() { spi_write( 0
  • Create New...