Search:

Type: Posts; User: Kisen

Search: Search took 0.01 seconds.

  1. Replies
    10
    Views
    4,161

    So i have restarted everything. recompiled and it...

    So i have restarted everything. recompiled and it works now.

    The old off and on trick.
  2. Replies
    10
    Views
    4,161

    I have now set my pins to this. //PIC32...

    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

    ...
  3. Replies
    10
    Views
    4,161

    I already have all analogues disabled using ...

    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:
  4. Replies
    10
    Views
    4,161

    Hi Tim, Yeah i want to use pins RA14/RA15. I...

    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...
  5. Replies
    10
    Views
    4,161

    Not sure why, but the UART has started working...

    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...
  6. Replies
    10
    Views
    4,161

    PIC32MX Pin remapping

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

    Software I2C - Not getting ACK from slave

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

    Thanks Salem, I had to go read up on what a...

    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. :)
  9. Replies
    1
    Views
    2,142

    Analogue register AD1PCFG

    Hi,

    I am trying to set some pins to digital.
    The datasheet for PIC32MX575F256L, shows this register.
    ...
  10. Replies
    2
    Views
    3,179

    Creation of a GPIO header file

    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...
  11. Thread: Unions...

    by Kisen
    Replies
    8
    Views
    6,386

    This worked. Thank you very much :)

    This worked. Thank you very much :)
  12. Thread: Unions...

    by Kisen
    Replies
    8
    Views
    6,386

    Ahhhh. My mistake. I see whats different now. I...

    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.
  13. Thread: Unions...

    by Kisen
    Replies
    8
    Views
    6,386

    This is identical to what I have already...

    This is identical to what I have already...
  14. Thread: Unions...

    by Kisen
    Replies
    8
    Views
    6,386

    Unions...

    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...
  15. So, I think i have fixed this. Although i dont...

    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
  16. I have added to the Delay.h #include...

    I have added to the Delay.h



    #include "MCU_Config.h"


    This is the full MCU_Config file.
  17. Defining a number that will be used throughout an entire program.

    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 ...
  18. Replies
    10
    Views
    6,627

    This looks much more condensed than how i have...

    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?
  19. Replies
    10
    Views
    6,627

    Thanks guys. I have been coding for about 3...

    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...
  20. Replies
    10
    Views
    6,627

    Create a string in binary from a decimal number

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