Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
Sure there a way start your own thread sanoopgr8 or just google xbee
New parts:
PIC16F1827
PIC16LF1827
PIC16LF1933
PIC16F1933
PIC12F617
PIC16F707
PIC16LF707
PIC16LF1826
PIC18F45K22
PIC18LF45K22
PIC12F1822
PIC16F1823
PIC12LF1822
PIC16LF1823
PIC16F1947
PIC16LF1947
PIC16F1946
PIC16LF1946
PIC18LF25K22
PIC18F25K22
PIC18F46K22
PIC18LF46K22
PIC18F26K22
PIC18LF26K22
PIC18F44K22
PIC18LF44K22
PIC18F24K22
PIC18LF24K22
PIC18F43K22
PIC18LF43K22
PIC18F23K22
PIC18LF23K22
dsPIC33FJ64GP206A
dsPIC33FJ64GP306A
dsPIC33FJ64GP310A
dsPIC33FJ64GP706A
dsPIC33FJ64GP708A
dsPIC33FJ64GP710A
dsPIC33FJ128GP206A
dsPIC33FJ128GP306A
dsPIC33FJ128GP310A
dsPIC33FJ128GP706A
dsPIC33FJ128GP708A
dsPIC33FJ128GP710A
dsPIC33FJ256GP506A
dsPIC33FJ256GP510A
dsPIC33FJ256GP710A
torial 1.3 - Nigel Goodwin 2002
LIST p=16F628 ;tell assembler what chip we are using
include "P16F628.inc" ;include the defaults for the chip
__config 0x3D18 ;sets the configuration settings (oscillator type etc.)
cblock 0x20 ;start of general purpose registers
count1 ;used in delay routine
counta ;used in delay routine
countb ;used in delay routine
endc
org 0x0000 ;org sets the origin, 0x0000 for the 16F628,
;this is where the program starts running
movlw 0x07
movwf CMCON ;turn comparators off (make it like a 16F84)
bsf STATUS, RP0 ;select bank 1
movlw b'00000000' ;set PortB all outputs
movwf TRISB
movwf TRISA ;set PortA all outputs
bcf STATUS, RP0 ;select bank 0
clrf PORTA
clrf PORTB ;set all outputs low
I have two books one in front of me is PIC IN PRACTICE by D W Smith.
Looking over the code examples it looks very similar to this
Code:torial 1.3 - Nigel Goodwin 2002 LIST p=16F628 ;tell assembler what chip we are using include "P16F628.inc" ;include the defaults for the chip __config 0x3D18 ;sets the configuration settings (oscillator type etc.) cblock 0x20 ;start of general purpose registers count1 ;used in delay routine counta ;used in delay routine countb ;used in delay routine endc org 0x0000 ;org sets the origin, 0x0000 for the 16F628, ;this is where the program starts running movlw 0x07 movwf CMCON ;turn comparators off (make it like a 16F84) bsf STATUS, RP0 ;select bank 1 movlw b'00000000' ;set PortB all outputs movwf TRISB movwf TRISA ;set PortA all outputs bcf STATUS, RP0 ;select bank 0 clrf PORTA clrf PORTB ;set all outputs low
Am I correct in assuming this?
Will order some 16F628 and ? or should I just use what I have for now (18F1320 and 18F4520?
Looking over the LEDboard as well as the main board 16F628, WHY a 1k resistor for LEDs?. Thats only 5ma to drive each of the LEDs?
Misprint or ??
; Internal RC calibration value is placed at location 0x1FF by Microchip
; as a movlw k, where the k is a literal value.
list p=10F200 ; list directive to define processor
#include <p10F200.inc> ; processor specific variable definitions
__CONFIG _MCLRE_OFF & _CP_OFF & _WDT_OFF
; pin assignments
#define TX GPIO,0 ; transmit pin on GP0
;***** VARIABLE DEFINITIONS
UDATA
buffer res 1
counter res 1
Count res 1
RESET CODE 0x000 ; effective reset vector
movwf OSCCAL ; update OSCCAL with factory cal value
goto init ; jump to main program
init
movlw b'00000000' ; set I/O
tris GPIO
bsf TX
movlw 'b' ; sets text to loads buffer with
call start
movlw 'e'
call start
movlw '8'
call start
movlw '0'
call start
movlw 'b'
call start
movlw 'e'
call start
movlw ' '
call start
movlw 'w'
call start
movlw 'a'
call start
movlw 's'
call start
movlw ' '
call start
movlw 'h'
call start
movlw 'e'
call start
movlw 'r'
call start
movlw 'e'
call start
movlw 0x0A
call start
movlw 0x0D
call start
goto init ;loop for ever
start
movwf buffer
movlw 0x08
movwf counter ; counts the 8 bits
bcf TX ; set TX low
call BItdelay ; delay to get a 9600 bit rate
TXLoop
rrf buffer ,f ;send one bit
btfss STATUS ,C ;
bcf TX ;
btfsc STATUS ,C ;
bsf TX ;
call BItdelay ;
decfsz counter,f ;test if all done
goto TXLoop ;
bsf TX ;
call BItdelay ;
return
BItdelay ; timing delay
movlw 0x17
movwf Count
Wait
nop
decfsz Count ,f
goto Wait
return
END ; directive 'end of program'
Thanks Burt
I'm glad I don't need another interface board.
The code you posted is for ? transmitting ?TX
Nigel The code I posted is serial and I only posted it to show Mrdeb it not that hard to do.. I can change it to work from what I have been reading this is using 2000 bits per sec And it sends the Commands strait out than inverts the data.
But the people at iteadstudio give links to software for the ardunuo and digging around there tells you that it's basically the same radios that sparkfun sold and they point you to sparkfun for data sheet for this thing. So i read the stuff over there and find you can just read the data serial at 2400baud and send it The same
SO I'll order me some and try it out.