Search Results - MEL PICBASIC Forum


Search:

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

Page 1 of 2 1 2

Search: Search took 0.00 seconds; generated 2 minute(s) ago.

  1. Replies
    3
    Views
    7,127

    Re: UART communication problem

    AWESOME! That was the problem and it's working now.
  2. Replies
    3
    Views
    7,127

    UART communication problem

    Hello,

    I am trying to use following code in a PIC18F14K50 to change configuration of a rn42 Bluetooth Module and it goes to command mode but then it gets stuck:


    As an example I want to change...
  3. Replies
    1
    Views
    12,986

    Write and read to memory of PIC18F14k50

    Hello all,

    I am trying to write and read from memory of PIC18F14k50.I have following code to write to memory location $500:


    DEFINE OSC 24

    X var byte
    Y var word
    Value var byte
  4. Replies
    1
    Views
    4,737

    PIC18F14K50 ADC problem

    Hello again!

    I am trying to get ADC working using AN7 pins but I keep getting zero for PORTC.7 and 20 when I use ADCIN 7.I am using a 24 MHz crystal.
    It worked with PIC18F2450 but doesn't work...
  5. Replies
    7
    Views
    5,572

    Re: Hserout sends wrong values

    It's a 24 mhz xtal.
  6. Replies
    7
    Views
    5,572

    Re: Hserout sends wrong values

    I am using standard config in P18F2450.INC file.


    NOLIST
    ifdef PM_USED
    LIST
    "Error: PM does not support this device. Use MPASM."
    NOLIST
    else
    ...
  7. Replies
    7
    Views
    5,572

    Re: Hserout sends wrong values

    I also get 50 when I set HSER_TXSTA to 20h in low speed.
  8. Replies
    11
    Views
    8,149

    Re: PIC18F I2C Communication with Arduino

    It worked! Thanks alot!
  9. Replies
    7
    Views
    5,572

    Hserout sends wrong values

    Hello again,
    I have a working code for sending a byte using PIC18F24J50 but the same code doesn't send the correct values in PIC18F2450. I send $05 and receive 252 instead.

    Here is my code:
    ...
  10. Replies
    11
    Views
    8,149

    Re: PIC18F I2C Communication with Arduino

    Yeah,You are right! Looking at datasheet those pins are analog by default..

    Now Control Address and write address is what confuses me.Control Address is 0x26 as defined in arduino code,right? so...
  11. Replies
    11
    Views
    8,149

    Re: PIC18F I2C Communication with Arduino

    I am using 2 2.2K pull up resistors on pins.

    Correct arduino code:


    #include <Wire.h>

    void setup() {
    Wire.begin(0x26); // join i2c bus with address
    ...
  12. Replies
    11
    Views
    8,149

    Re: PIC18F I2C Communication with Arduino

    I am using PIC18F2450 which doesn't have hardware I2C pins.Isn't I2CWRITE just a software solution and not using actual hardware?

    here is arduino code:


    #include <Wire.h>

    void setup() {
    ...
  13. Replies
    11
    Views
    8,149

    PIC18F I2C Communication with Arduino

    Hello all,

    I read all the I2C related posts but still can't fully understand how to send dada from PIC18F to an Arduino.

    I set the address of arduino to 0x26 and try to do following in PicBasic...
  14. Replies
    2
    Views
    2,917

    Mouse example is not working in Pic18F2450

    Hello all,

    I am new to USB.

    I have been trying for more than a week to get the mouse example working in Pic18F2450 but it either doesn't get recognized by PC or it says unknown usb device.

    I...
  15. Replies
    1
    Views
    2,547

    Re: USB objective file library

    So I edited assembly code in hid_desc.bas and used global directives for USBDeviceInit,USBDeviceTask,and PutUSB in usb_mem.asm.I then used MPASMWIN tool to generate hid_desc.O from hid_desc.asm and...
  16. Replies
    1
    Views
    2,547

    USB objective file library

    Hello again,

    I keep asking questions but hopefully I get it this time.

    So I am trying to turn hid_desc.bas to a lib or .o file and then use that as a usb library for every project instead of...
  17. Replies
    14
    Views
    32,747

    Re: How to include a .DLL?

    I don't mind if they dissemble the hex.I just don't want it to be too easy to simply read the code.As far as I can call a function in Bootloader then I am fine.I am a bit new to bootloader but can I...
  18. Replies
    14
    Views
    32,747

    Re: How to include a .DLL?

    Most of it will be open source but I don't want to open source small part of it dealing with USB.So basically I want to release the source code but not one of include files.
  19. Replies
    14
    Views
    32,747

    Re: How to include a .DLL?

    The purpose is to have an open source code that part of it is encrypted. So I don't want to release part of it.Either using an object file,DLL, or code in bootloader and then call it from main code.
  20. Replies
    14
    Views
    32,747

    Re: How to include a .DLL?

    Seems like there are lots of bootloader posts that you are involved.But I think bootloader is the way to go. Is there any example for reading data/including code from bootloader to main code?
  21. Replies
    14
    Views
    32,747

    How to include a .DLL?

    Hello all,

    I would like to encrypt part of my code by turning it to a .DLL.

    I am trying to turn part of my code to assembly and trun that to a DLL.

    Now I am a bit confused on how to include...
  22. Re: How to use PIC18 with MCP USB Chip to do HID?

    That's not what I wanted to hear but at least I won't spend more time on it. My goal is to avoid the legal issues as this is an open source project and I can't legally tell people use our vendor id...
  23. Re: How to use PIC18 with MCP USB Chip to do HID?

    I am trying to change more than VID and PID in the MCP2200 descriptor but there is no way to do it using the methods described.There is no HID mouse report descriptor in the descriptor. Basically I...
  24. Re: How to use PIC18 with MCP USB Chip to do HID?

    I got the onboard USB working with EASYHID and the hid libraries but I would like to replace it with USB chip to get over vendor id problem.
  25. How to use PIC18 with MCP USB Chip to do HID?

    Hello all,

    I would like to create a mouse device using a pic18f24j50 and a mcp2200 or mcp2221 USB chip to do HID.

    Both these chips come with proprietary DLLs.So I am not sure how I can use them...
Results 1 to 25 of 33
Page 1 of 2 1 2