Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.
MPASM regards BNZ (and other conditional branches BZ. BNC, BC etc) as a built-in pseudo instruction and replaces it with the btfss STATUS, Z (or other conditional test for Z NC, C etc) and goto instructions.
- - - Updated - - -
You didn't look very hard did you?
movlw 0x14 <--- 1 x 1
movf n <--- 1 x 1
igen decf n,f <----1 x 20
btfss STATUS, Z <----1 x 19 + 1 x 2
goto igen <----2 x 19
; bnz igen <---- No such instruction on PIC16...
pic16f874a portb error
You need to set portb to digital I/O by writing a value to the ADCON SFR. Portb is analog by default.
movlw 0x07
movwf ADCON1
You should also use the microchip header files.
#include 16F874a.inc
Then use the defined names for constants in your source code.
Also...
requests removed
please press the blue button next time thank you
Attention Moderator,
Please do something about the last two posts. You know that I will always defend the copyright of the WARP-13 and the software and firmware.
I trust this matter will be taken care of properly.
Thank-you...
Re: PIC START PLUS FOUND
Thank-you moderator.
The WARP-13 is copyright and the source is NOT available. The other poster was wrong.
Regards,
Jim Robertson
NEWFOUND ELECTRONICS
Yes, very wrong. The Silabs CP2101 is good for > 900k baud. The FTDI232BM is good for 3M baud.
The AVR based USB convertor is good for only 800 bytes/second even if the baud rate is much higher. Low speed USB provides only 8 bytes per 10mS if you use it correctly. There are some ways around...
pir1bits.rcif mikrobasic
Read the data sheet! ;-)
BRGH = 0
Baud Rate = FOSC/(64(x+1)
= 8000000/(64(13))
= 8000000/(832) = 9615 baud
With PLL
Baud Rate = FOSC/(64(x+1)
= 32000000/(64(13))
= 32000000/(832) = 38462 baud
Have a look at this file. **broken link removed**
It may also...
7 bit serial c18
Use SPBRG = 0xC for 9600 baud @ 8MHz, BRGH=0
This will probably fix the problem.
This is wrong. Bit-1 is read only. Why are you writing a '1' to it?
Now this is just silly. Did you read the data sheet?
Try
RCSTA = 0b10010000
(and do read the data sheet.) ;-)...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.