Jump to content

MrNobody

EstablishedMember
  • Content Count

    6
  • Joined

  • Last visited

Community Reputation

0 Neutral

About MrNobody

  • Rank
    Newbrie
  1. Hi.. I need some advice on how to set port A of PIC16F877A as input correctly.. Below is a code that when input RA0 is HIGH, LED on RD0 will turn on (at least that is what I plan for it to do). When RA1 is high, LED on RD1 will turn on etc.. The input I have is from RA0 to RA4.. But the code doesn't seem to work.. It doesn't recognise the input at port A.. I have already set the trisa to input but still no result.. Can somebody please advise.. thanks.. #include <system.h> //Target PIC16F877 configuration word #pragma DATA _CONFIG, _PWRTE_OFF & _BODEN_OFF & _WDT_O
  2. Hi.. Can somebody please teach me how to convert the code below into BoostC..? I have some basic knowledge on BoostC but I totally have no knowledge of HITECH PIC16 compiler.. So, I don't even know how to begin.. Thanks in advance.. Here is the code //////////////////////////////////////////////////////////////////////////////// // // PIC16F877 + SRF05 + LCD03 example // Written October 2005 by Gerald Coe, using HITECH PIC16 compiler // // Performs ranging using just a single pin on the PIC16F877 (RB0) // // Note - assumes a 20MHz crystal, which is 5MHz timer clock //
  3. Really sorry for the wrong title mods and people.. Initially, when I typed this post, I thought that the programming was written in ASM.. but then I realised that the code was actually written in Pic Basic (I think).. I am new to the world of PIC programming.... -Original Message- Hi, Below is a code to calculate the number of pulses and convert it into RPM to display in LCD.. If I am not mistaken, it is written in Pic Basic rite..? Can somebody please teach me how to convert it to C language (BoostC)..? Thanks.. Device = 16F877 Xtal = 20 Dim Result as DWord LCD_DTPIN = POR
  4. Hi.. I use BoostC to write a Traffic Light code. After writing it, I download the code onto PIC16F84A and it work fine there.. But when I use the hex code generated on Proteus ISIS' traffic light, it doesn't work there.. The RB3 and RB4 pin on for unlimited amount of time. Due to the working environment I am in, actual hardware simulation is not practical. So, I need to use Proteus to simulate more complicated circuits... Do anybody know how I can make hex code generated by BoostC run in Proteus..? Help would be very much appreciated. Thanks in advance..
  5. Hi.. I use BoostC to write a Traffic Light code. After writing it, I download the code onto PIC16F84A and it work fine there.. But when I use the hex code generated on Proteus ISIS' traffic light, it doesn't work there.. The RB3 and RB4 pin on for unlimited amount of time. Due to the working environment I am in, actual hardware simulation is not practical. So, I need to use Proteus to simulate more complicated circuits... Do anybody know how I can make hex code generated by BoostC run in Proteus..? Help would be very much appreciated. Thanks in advance..
×
×
  • Create New...