Search Engine

469 Threads found on Hitech
hitech c software uart example code /* * Serial port driver (uses bit-banging) * for 16Cxx series parts. * * IMPORTANT: Compile this file with FULL optimization * * Copyright (C)1996 HI-TECH Software. * Freely distributable. */ #include /* * Tunable parameters */ /* Xtal frequency */ #define XTAL 4000000 /* Baud rate
In my project i am using an RF module. I have to continuously receive data from different transmitter at a time. Is it possible to receive data simulatneously from multiple transmitter. I am not able to receive data from more than one transmitter. Help me please.....i am using 16f877a....hitech c compiler....
Hi i am going to connect two dc to dc converter output (54V) in parellel to charge a (4 12V) battery. my two dc to dc converter output has voltage difference of 3 to 5v . Is this cause more circulating current in my circuit . if so how i limit it.
Hi i am writting program for rtc (ds 1307) to display it in lcd using pic 16f877a controller .i read ds 1307 datasheet it stated that if we want to write in timekeeper register then we should give BCD value . 50 sec in dec is written as 01010000 in bcd so it requires 8 free bit in a register to update but in sec register it has one clock halt bit(C
Hi, I want to do a serial communication with pic 16f877a mc and my gps module. Gps module has rx tx pins and has a ttl output. I have written a program using hitech-C to , process the receiveng nmea sentences from the module and write the putput on a LCD which re longitudanal and latitudanal data. I want to connect the GPS module to the micr
Hi , I want to interface LCD module with PIC 16f877a I used the following code and used hitech C my main program is, #include #include "lcd.h" void main(void) { lcd_init(); lcd_goto(0); // select first line lcd_puts("12345678"); lcd_goto(0x40); // Select second line lcd_puts("Hello world"); for(;
Yes, of course this is possible. The SD card, whether it is micro SD or Mini SD, or Standard SD, can communicate with your microcontroller via the SPI protocol. There is a library available from hitech which will allow you to use the SPI protocol with ease. It can work at any low speed such as from your 4 MHz crystal, but please remember that
hy: i m reading the GSM sim900 data on interupt after AT+CMGR=1 but Garbage come on my lcd ,,,can any one chack my receiving code,, uC 16f877A,,,,Compiler hitech. //////////////Serial Interrupt Setting///////////////////// //////////////////Rx Interupt//////////////////////////// void interrupt receive(void) { if(RCIE && RCIF)
If you use the hitech PICC18 compiler, your code compiles fine: Build C:\Documents and Settings\Administrator.BDG\My Documents\Projects\EDAboard\abhishekdixit\abhishekdixit for device 18F4550 Using driver C:\Program Files\HI-TECH Software\PICC-18\PRO\9.66\bin\picc18.exe Make: The target "C:\Documents and Settings\Administrator.BDG\My
Hi. I have run into a strange problem. I am using PIC18LF1220. The microcontroller is working fine except pin RB2. I have configured RB2 as input but it always reads 0 volts. To eliminate possibility of (hardare) PCB problem, I bent the RB2 pin so now its not touching the PCB. Then I am applying 3.3 volt directly from power supply to the pin. Howev
MPLAB hitech C compiler :)
My code in hitech C is working... // HI-TECH C Compiler for PIC10/12/16 MCUs V9.83 #include //#include //#include //#include //#include __CONFIG ( 1 & FOSC_INTOSC & WDTE_OFF & PWRTE_OFF & MCLRE_OFF & CP_OFF & CPD_OFF & BOREN_OFF & CLKOUTEN_OFF & IESO_OFF & FCMEN_OFF ); __CONFIG ( 2 & WRT_O
Hi there, I am doing my project in vehicle tracking, which uses gps and gsm. I am using pic16f877a(MPLab hitech C compiler). I have completed the codings for both gsm and gps seperately. I need to integrate these things to vehicle tracking. But the pic16f877a has one UART port. Hence suggest me whether i have to use relays to switch between g
I am using PIC16f1527 IC. I have doubt in how to configure UART1 configuration registers and Baudrate formula selection. Kindly send the sample code. hitech c compiler. check this FOSC=20MHZ and baudrate=57600
Hello guys. I am using this code (hitech c) for sending and receving data with virtual terminal (proteus). When I type "1" and "2" when the terminal has a focus I can proprely turn on/off a led on a portB. But the command "b" doesn't return a the string HHHHH. THe baund is the same 9600..What's wrong? Any help? Thanks ------------------------
Hello guys, Do you guys have experience with DS1307 and PIC 16F877A ? I 'm using hitech C and I can't use the example from compiler.... I stack with : unsigned short read_ds1307(unsigned short address) { //unsigned short dataa; I2C_Start(); I2C_Wr(0xd0); //address 0x68 followed by direction bit (0 for write, 1 for read) 0x68 follo
Hi, Find the attached code files for ds1307 RTC IC and I2C interface for pic18f252. It is written in hitech PICC. To use change the extensions, headers and include files. Enjoy!
Thanks, PA3040, nikhilsigma, ec_nisarg. dear 'nikhilsigma' , one question to u plz clear me 1. #define status PORTDbits.RD1 here, Does 'status' mean STATUS register which contains C,Z,RP0,RP1 etc. bits or PORTD1 is definning as 'status' symbol??? if 'status' is not STATUS, then can i write #define status PORTD
This is the program for Digital Temperature Monitoring System. When I build this code in MPLAB hitech c compiler it is build success, but when i simulate this in protecous software is does not show any output. My circuit and program are given bellow. Could anyone help me by correcting code or problem. By this program i can measured internal tempera
I use like in hitech and works... Maybe the #define statment is like hitech c!?!? /* hitech C for PIC12F629*/ #include // Required to interface with delay routines #ifndef _XTAL_FREQ // Unless already defined assume 4MHz system frequency // This definition is required to calibrate __delay_us() and __delay_ms() #define _
hI. I have built a board equipped with lm35dz. THe pic is PIC16f876A. Right now the board is able to receive/reply command/messages via RS232 Works fine.. I would like to read the temperature and send it to my PC. I am using hitech. Someone could help me posting a working code C example ? Thanks
Hi friends I need to vary pwm duty cycle in 0 to 255(50khz). but 50khz resolution is 8.64 bits(0 to 398). i need scale the value 0 to 398 into 0 to 255? How to scale the values? input data 255=398/1.56 ; correct or not? how to use float value? ____________________ hitech C compiler
Hello all, I am trying to display the touch positions from a resistive touch screen on a 16x2 LCD using PIC18LF4550. I got a sample code from have made few modific
you would need an FMC card with a 10gbps phy. hitech global makes such a card with an ael2005. IIRC, the ael2005 does 10GBase-SR/LR/LRM. It connects to the FPGA using XAUI, which uses 4 of the 3.125Gbps transmitters on the FPGA. The XAUI logic is implemented partially in the GTX's, and partially in FPGA fabric. The 10Gbe MAC is implemented ent
Hi to all, We are going to use PIC24EP512GU814 controller for our industrial application. So far we had worked in 16 and 18 series and compiled using CCS compiler. But we heard that the CCS compiler is not suitable for the higher end application. So we are in mess to move ahead. So Could anybody clarify us for the compiler to select from the oth
Hello All, I have a 4-wire resistive touchscreen and have interfaced it with a PIC18F4550 uc. I am able to display the co ordinates on an LCD at this point of time. What I wanted to do is using this co-ordinates (0 to 1023) information to control a device to turn it ON. For eg, I would like to play a music clip recorded on APR9600 when I touc
hi i wrote program for pic uart in hitech-c and i am trying to simulate it in proteus and i need help .I used LCD to display data which i typed in virtual terminal is it works . what is virtual terminal in proteus . is it used to send and receive data from microcontroller . #include #include"lcd.h" void pic_init(); void uart_init()
I am trying simple led blinking code on pic16f877a .Simulations are working fine on proteus but hardware is not responding.I am using mplab with hitech compiler My code is as follows #include __CONFIG( FOSC_HS & WDTE_OFF & PWRTE_ON & CP_OFF & BOREN_ON & LVP_OFF & CPD_OFF & WRT_OFF & DEBUG_OFF); // Define LED pin
@Golden Electronics: I don't want to buy a PIC18 C compiler, hitech's C compiler only allows free compiling for PIC 10/12/16 MCUs... I have to look for some C compiler too. Hi, This looks like a free 18f complier
It probably depends on the microcontroller, compiler & IDE. Using PICs with MPLAB and hitech/Microchip C compiler it will normally only build the changed modules but download the whole program. You can 'manually' specify the area to program so if you forced certain modules into certain places you could possibly only partially flash it, but usually
The hitech compiler provides a set of accurate delay routines, _delay_ms() and _delay_us(). However, the compiler must have the current system clock frequency (Fosc) before it can generate the required code to implement the delay. Which is the purpose of the following statement: #define _XTAL_FREQ 8000000 If you current des
Hi, I am working on a project involving a graphical LCD JHD12864E. I have written a library for displaying text as well as graphics using hitech-C compiler for pic16f; The problem I am facing is that, 1.) The part of the display being controlled by CS1 does not display anything , however the other half is working fine. 2.)
i ammended the code,.. still not compiled. will you please attatch a simple code for interfacing the LM016L LCD with PIC16f877A written in C language. I m using hitech compiler for compilation purpose. regards,
In Youtube video, you trying to compile the asm generated by MikroC!!! Try to open HMS.mcppi in MikroC and compile!!! IF you use the code: #include "htc.h" __CONFIG(0x0770); unsigned short tick; ... etc... This is hitech C Universal ToolSuite. Use option into the MPLAB like picture bellow: 95071[/
COMPILER: hitech C18 9.8 CONTROLLER: PIC18F4520 SIMULATION: PROTEUS ISIS Hi ppl .I am making a data logger for SD,MMC CARD. FOR SD CARD initialization command CMD8(for sd cards v2+) i am getting invalid command response. CMD0 is giving valid response ie 01. I am sending the following command CMD8 = 0x48 0x00 0x00
what does the following error mean. I am using pic - 12f615 Error C:\Program Files (x86)\Microchip\tx_37pricing.c; 31.1 undefined identifier "IOSCFS"
Please... try this: /* hitech C using PIC12F629 */ #include #ifndef _XTAL_FREQ #define _XTAL_FREQ 4000000 #endif unsigned int count; __CONFIG ( FOSC_INTRCIO & WDTE_OFF & PWRTE_OFF & MCLRE_OFF & BOREN_OFF & CP_OFF & CPD_OFF ); void main() { OSCCAL = 0x3ff; GPIO = 0x00; CMCON = 0x07; TRISIO = 0b00001000; G
check the config bits and use HS for 20MHz.. in hitech compiler use #define _XTAL_FREQ 20000000 // in top for(i = 0; i < 40; i++) __delay_ms(25);
Well try this one also: (I am not sure whether it has considered as a error by hi tech compiler or not but give it a try) I haven't use hitech, but this is the basic rule so it may affect here!? - There are 2 basic forms of include directory : 1) angle brackets: insstructs the preprocessors to search for the included file using a predefi
i m try to receiving GPS data and filter the time , longitude and Latitude in $GPGGA . i m using hitech compiler and 16f877 controller here is my code : ///////////////Serial Interrupt Setting///////////////////// //////////////////Rx Interupt//////////////////////////// void interrupt receive(void) { if(RCREG!=0X0D) { Rx
Hi, What i want i actually let PIC to detect the voltage level at RA0(AN0), if the voltage level is from 3-5V, then turn on the LEDs at PORTC... I have turn on the Analog setting at RA0 but still not working... Microcontroller: PIC18F45K22 Compiler: MPLABX IDE hitech C #include /* Start of configuration fuses*/ #pragma con
Hi kvsa you can continue in the same thread itself no need of posting a new thread.. and as jayanth.devarayanadurga said you have to modify the resistors.... The programming part is very simple and you can do whatever you want, I always use hitech compiler so i am writing on it, you will need MPlab IDE and hitech compiler for compiling purposes..
In my project i want to use tsob with project is home applaiances control by ir remote.......i want to how tsop interface with pic16f877a........and how the data will be processed.......anybody knows plz help me.... Thanks in advance.....
Try this: //********************************************************************************************************** // hitech C //********************************************************************************************************** #include //****************************************************************************
Guys I am doing a project with PIC18F2550/4550 I have compiled the bootloader for the device. My whole project is in hitech C for PIC18, now I need to adopt my code so that code starts from 800 instead of 0000, I have found the following code but it is for C18, I need to change it to hitech C for PIC18, I will be thankful for the help
MPLAB is only the IDE. What is the specific compiler you are attempting to utilizing, CCS, hitech PICC, Microchip XC8, etc? It appears as if you are not utilizing the correct compiler directive to set the configuration register and initialize the UART. You are mixing CCS and hitech Compiler directives, consult the actual compiler user manual for
The following is the MPLAB User Guide MPLAB IDE User?s Guide with MPLAB Editor and MPLAB SIM Simulator You will need to ensure you have hitech C PIC10/12/16. The tutorials begin on page 41. Additional reference material is available from: [URL="h
Download the Compiler like if you are using PIC18 then also Install MPLab C18 Compiler or hitech Compiler all details are available in Microchip's website
hitech-C is now Microchip XC series of compilers. XC30 does support dsPIC.
This codes only works for first input, for 2nd input onwards, it does not working..... /************************ RFID BASED ELECTRONIC TOLL GATE SYSTEM **********************************************/ #include #include #include #include #define _XTAL_FREQ 20e6 //=============