So i have restarted everything. recompiled and it works now.
The old off and on trick.
Type: Posts; User: Kisen
So i have restarted everything. recompiled and it works now.
The old off and on trick.
I have now set my pins to this.
//PIC32 I2C1 - SDA
TRISAbits.TRISA15 = 0; //PIN RA15 - SET AS OUTPUT
LATAbits.LATA15 = 1; //PIN RA15 - SET HIGH
...
I already have all analogues disabled using
AD1PCFG = 0xFFFF;
I have a MCU_Config() function to set up all the pins and in there for the I2C i do this:
Hi Tim,
Yeah i want to use pins RA14/RA15.
I am using a hardware analyser to look at the bus. It is just sitting in a high state, it never pulls low at any point.
The I2C1CON register in the...
Not sure why, but the UART has started working again. Im not sure what i have changed to make it work, but for now it does.
These are the i2c functions i have. It all compiles but i get nothing at...
Hi,
I am using the PIC32MX575F256L. I have currently got UART1 running on pins RF8 and RF2.
This was all working fine up until a few hours ago.
I set up hardware I2C1. I would like it to use...
Hi
I have started to implement a software i2c driver.
I have run the function on several devices on a custom PCB.
Below is the logic output directly from the bus.
Of the 4 devices tested so...
Thanks Salem,
I had to go read up on what a static function was...newby problems... But i get the method you are describing.
This should achieve what i want it to and make it easier for me. :)
Hi,
I am trying to set some pins to digital.
The datasheet for PIC32MX575F256L, shows this register.
...
Hi.
I am giving something some thought.
I would like to create a header file that will contain all of the information regarding each pin.
//example
ANSELAbits.ANS1 = 0; //set to...
This worked. Thank you very much :)
Ahhhh. My mistake. I see whats different now. I am missing [4]. Its been a long day :)
I will try this tomorrow when I'm on the PC and let you know if it worked.
This is identical to what I have already...
Hi.
I have been reading about unions.
I have but together what i think is the solutions to the following:
I have a float value and i would like to easily break it into 4 bytes and view each...
So, I think i have fixed this. Although i dont know how or why it is fixed exactly.
so i changed the Header to contain just the defines...
#ifndef MCU_CONFIG_H
#define MCU_CONFIG_H
I have added to the Delay.h
#include "MCU_Config.h"
This is the full MCU_Config file.
Hi
I am going wrong somewhere with something that i feel should be quite simple.
I have a header file called MCU_Config, In there SYS_FREQ is defined.
#ifndef _MCU_CONFIG_H ...
This looks much more condensed than how i have gone about it.
Does this method have much benefit in speed? Or is it just less typing?
Thanks guys.
I have been coding for about 3 days!!
I didnt see the = and == differences when looking for similar examples of what i was attempting to do.
The == has fixed the function tho...
Hi.
My first post here.
I am attempting to take a decimal number (0-255) and convert it to a binary string.
Something that looks like 0b01010101 for example.