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.
rcsta port c18
cause of error may ..
1 error in broadrate timming
2 differance between sign data and unsign data
3 number of stop bit
4 number of bit per transmit
write program to check BOR (Brown Out Reset)
if occure while Erase ...
Erase entire block use higher current than write
data a lot Check your flash memory datasheet
Re: CAN on pic18f458
Try to use loop back mode for test your code
(Careful acceptance filter in Can module )
if your code work you should get data that your send.
if still not work i think your hardware have problem.
This application note frome Microchip
https://ww1.microchip.com/downloads/en/AppNotes/00732a.pdf
code
https://ww1.microchip.com/downloads/en/AppNotes/00732.zip
for imprement bootloader for pic16f87X
I suggest you shoulde start with PIC18F452 or
PIC18F4320
Becase PIC18 memory isn't page memory like
PIC16 that programer not worry about paging
when you write asm . And if you use C pic18
is good choise 4 U.
difference pic16f628 and pic16f628a
PIC16F628 don't have analog comparator module.
PIC16F628A integrated analog comparator.
and Configulation bit pattern are differance.
Programming Pic 16F877
ICSP from microchip have 2 mode
:)
<1> standard programing need condition
1 Vpp 13v on MCLR pin (progamming mode)
2 power 5v-4.2v on Vdd pin
3 ground on Vss pin
4 Data for progaming (Bi-directional)
Call PGD Programming data on RB7 pin
5 Clock for...
R 100 ohm for limit current (VPP 13v) flow to gound.
if you don't add this R it may damage your serail port from over current.
8)
I am not sure. But i think it ok because Serial ICSP circuit is not draw
a lot current to drop voltage. :roll:
USB mass storage help
you need firm ware for mass storage device class.
and you need hard ware for interface with
USB protocal (Called SIE = serial interface engine)
#not a good idear for develop SIE by yourself#
I suggest you use MCU that integrated SIE.
PIC18F452 specification write data to EEPROM used
4ms for write cycle .
If you use C langauge I think you should
use write cycle time =5ms.
So you can write stream data 200 byte/Second
# Design a good hand shake for programing.
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.