Need help with pseudo code !

Discussion in 'C Programming' started by D.D, May 5, 2012.

  1. D.D

    D.D

    Joined:
    May 5, 2012
    Messages:
    1
    Hello everyone,
    I am not really good with coding and programming stuff, so I need to convert this code into C code:
    ---------------------------------------------------------------------------------------------------------------------------------

    Main
    Unsigned int temp_res
    Unsigned char result [7]
    Initialize ADC
    TRISA ==> R0 is Input (Channel 0 Analog)
    TRISC ==> RC7 is Input (Rx)
    ==> RC6 is Output (Tx)
    Initialize Baud Rate // 9600 bps
    Delay 1000 ms for stabilization

    While (1)
    {
    Read from ADC to temp_res
    temp_res = temp_res / 200
    Write TEXT to UART1 ("The voltage is: ")
    IntToStr(result, temp_res) // This is the name of this method exactly in MikroC (Integer to
    String conversion)
    Write TEXT to UART1 (result)
    Write TEXT (" ")
    Delay 1000 ms to ensure transmission
    }
    ---------------------------------------------------------------------------------------------------------------------------------
    Thanks !
    D.D, May 5, 2012
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. =?Utf-8?B?Z2xlbm4=?=

    Pseudo code to update Access db using VB.NET

    =?Utf-8?B?Z2xlbm4=?=, Apr 4, 2006, in forum: ASP .Net
    Replies:
    1
    Views:
    2,512
    =?Utf-8?B?UGhpbGxpcCBXaWxsaWFtcw==?=
    Apr 4, 2006
  2. corejavagroups

    what is a pseudo code?

    corejavagroups, Oct 26, 2005, in forum: Java
    Replies:
    4
    Views:
    5,670
    Joshie Surber
    Oct 26, 2005
  3. r-w

    pseudo-code

    r-w, Apr 7, 2009, in forum: Python
    Replies:
    3
    Views:
    361
  4. sHeZ123

    Converting pseudo code into C

    sHeZ123, Apr 28, 2009, in forum: C Programming
    Replies:
    1
    Views:
    740
    sHeZ123
    Apr 28, 2009
  5. Mark Storkamp

    Pseudo code to C help needed

    Mark Storkamp, Oct 22, 2013, in forum: C Programming
    Replies:
    25
    Views:
    299
    glen herrmannsfeldt
    Oct 23, 2013
Loading...

Share This Page