Hello igorkhod,
later on i did not use adxl312 instead i used adxl345 because adxl312 was not available in small quantity.
adxl312 is similar to adxl345, if i can remember correctly adxl312 have...
Type: Posts; User: cluster; Keyword(s):
Hello igorkhod,
later on i did not use adxl312 instead i used adxl345 because adxl312 was not available in small quantity.
adxl312 is similar to adxl345, if i can remember correctly adxl312 have...
hi
can any one tell me if pic16f505 supports serin2 command? i tried the below code but it gives me error, "SERIN2DPIN?T not found in macro file"
define OSC 4
include "modedefs.bas"
temp var...
Hi Charles,
i created this simple program and tried to run but it didn't worked. it should blink led and remap high priority interrupt vector
but if i comment out the goto 0x2008 line it starts...
thanks for your reply.
but how to put jump instruction at 0x0008? i tried using this asm code but i got error "overwriting previous address content"
asm
org 0x0008
goto 0x2008
endasm
hi
can any one tell me how to remap interrupt vector in pbp or assembly? i have written a bootloader which loads new firmware with help of external eeprom. when interrupt occurs in the new...
Hi Henrik,
Thanks for reply. i am sorry i mean interrupt vector
i have written my own code similar to bootloader using PBP and DT-INTS. this is what happens, it first receive firmware from USB...
ok i think i found the issue and its because of reset vector. i am using bootloader to send firmware, after bootloader writes the firmware it works till interrupt occurs.
can anyone tell how to...
Hello
below is my code. i am using pic18f4550. light start to blink as expected but when anything is sent serially it hangs pic and blinking light stops.
DEFINE RESET_ORG 0x1000
DEFINE OSC 48 ...
many thanks Darrel, it now worked.
i never gave it a thought. you made my day.
thank you Darrel for you response
18f4550 datasheet states that write to program memory is executed on blocks of 32 bytes at a time and program memory is erased in blocks of 64 bytes at a time. i...
hello,
the below code first erase memory location and then write some code from external eeprom and then uses goto statement to jump to execute new code. everything is working properly except the...
hi
thanks all for your reply
problem solved... i did two things:
1. started to write 128 locations in one shot instead of 28 as suggested by sayzer
2. i was using usb port for power supply so i...
Hi all,
i've very strange problem while writing to external eeprom 24lc512. its connected to 18f4550 with 4.7k pullups. eeprom data is sent through USB from PC
i am writing eeprom in chunk of...
hello
i want to write a code in high memory of pic18f4550 so i modified the pbppic18.lib file and changed ORG RESET_ORG + 8 to ORG 27040 as explained in this post:...
hi
can any one tell me how to use interrupt using serin and serin2?
i know serial interrupt can be setup if using hserin but is it possible to setup interrupt using serin and serin2.
in my...
thank you mister_e
hi
in my project i require to detect if usb host is present or not. i am running pic18f4550 using battery. can anyone please tell me if this is possible or not? highly appreciate any sample code...
sorry i messed up the test results, this is the result i got, tested it twice
test program
test:
high porta.0
pause 500
low porta.0
pause 500
goto test
when i put the above code (@ osc 48) led remained on and never turned off, so i modified it and led blinks at 1hz
test:
high porta.0
pause 250
low porta.0
pause 250
goto test
thanks for you reply
i am using 20Mhz crystal if i define osc 20 then i get garbage from serout so i changed it to 48
is it wrong?
hi,
i am having trouble reading acceleration data from adxl312, this accelerometer is similar to adxl345. below is my code, it doesn't work, no matter how much i shake it i get only 0 reading. i...