Search Results - MEL PICBASIC Forum


Search:

Type: Posts; User: cluster; Keyword(s):

Search: Search took 0.00 seconds.

  1. Replies
    11
    Views
    10,626

    Re: help reading adxl312

    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...
  2. Replies
    3
    Views
    2,431

    pic16f505 serin2 not supported?

    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...
  3. Replies
    12
    Views
    8,903

    Re: how to remap interrupt vector - pic18f4550

    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...
  4. Replies
    12
    Views
    8,903

    Re: how to remap interrupt vector - pic18f4550

    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
  5. Replies
    12
    Views
    8,903

    how to remap interrupt vector - pic18f4550

    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...
  6. Re: pic18f4550 hangs.. RX_INT DT_INTS-18.. please help

    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...
  7. Re: pic18f4550 hangs.. RX_INT DT_INTS-18.. please help

    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...
  8. pic18f4550 hangs.. RX_INT DT_INTS-18.. please help

    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 ...
  9. Replies
    4
    Views
    3,077

    Re: @goto not working please help

    many thanks Darrel, it now worked.
    i never gave it a thought. you made my day.
  10. Replies
    4
    Views
    3,077

    Re: @goto not working please help

    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...
  11. Replies
    4
    Views
    3,077

    @goto not working please help

    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...
  12. Replies
    4
    Views
    3,668

    Re: strange 24lc512 eeprom problem

    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...
  13. Replies
    4
    Views
    3,668

    strange 24lc512 eeprom problem

    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...
  14. Thread: usb code help

    by cluster
    Replies
    0
    Views
    2,938

    usb code help

    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:...
  15. Replies
    3
    Views
    3,732

    serial port interrupt without using hserin

    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...
  16. Replies
    2
    Views
    4,574

    Re: pic18f4550 detect usb host present or not

    thank you mister_e
  17. Replies
    2
    Views
    4,574

    pic18f4550 detect usb host present or not

    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...
  18. Replies
    11
    Views
    10,626

    Re: help reading adxl312

    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
  19. Replies
    11
    Views
    10,626

    Re: help reading adxl312

    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
  20. Replies
    11
    Views
    10,626

    Re: help reading adxl312

    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?
  21. Replies
    11
    Views
    10,626

    help reading adxl312

    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...
Results 1 to 21 of 21