AWESOME! That was the problem and it's working now.
Type: Posts; User: picmilan; Keyword(s):
AWESOME! That was the problem and it's working now.
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...
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
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...
It's a 24 mhz xtal.
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
...
I also get 50 when I set HSER_TXSTA to 20h in low speed.
It worked! Thanks alot!
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:
...
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...
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
...
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() {
...
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...
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...
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...
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...
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...
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.
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.
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?
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...
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...
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...
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.
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...