Sonsivri
 
*
Welcome, Guest. Please login or register.
Did you miss your activation email?
December 04, 2016, 05:22:29 17:22


Login with username, password and session length


Pages: [1]
Print
Author Topic: Hi-Tech Usage  (Read 1448 times)
0 Members and 1 Guest are viewing this topic.
tavioman
Active Member
***
Offline Offline

Posts: 150

Thank You
-Given: 14
-Receive: 17



« on: March 24, 2008, 07:54:24 07:54 »

Hi everybody.
If anyone is intersested in using HiTech compilers for PIC say your vote here.

My goal is to make HiTech as easy as CCS. This will be an advantage because Hi Tech is not that buggy as CCS.

Here is an example:

http://www.sonsivri.com/forum/index.php?topic=10827.msg46283#msg46283
Logged

- Brain juice -
shobits1
Junior Member
**
Offline Offline

Posts: 40

Thank You
-Given: 15
-Receive: 10


« Reply #1 on: March 25, 2008, 01:05:48 01:05 »

I agree with tavioman, Hi-Tech is the most powerfull complier for pics, less bugs, more code effecient, better code optimisation, less in using space, the only inconvenient was you must do everything by your self Smiley
Logged
omni
Active Member
***
Offline Offline

Posts: 139

Thank You
-Given: 163
-Receive: 167


« Reply #2 on: March 26, 2008, 03:09:04 03:09 »

Also it's an ANSI C compliant compiler which is yet another reason to use it, beside being available on all platforms. I wanted to make the switch so many times but lack of drivers kept me away and CCS C was so much easier to use because of it.
Logged
mcnscott
V.I.P
Newbie
*****
Offline Offline

Posts: 8

Thank You
-Given: 5
-Receive: 0


« Reply #3 on: March 31, 2008, 09:49:03 21:49 »

I downloaded the student version of hi-tech, it's amazing how different compilers can be that do the same thing.  Looking at the examples so far I'm a bit confused how the fuses are set I'm use to writing each fuse out individually. Huh
Logged
tavioman
Active Member
***
Offline Offline

Posts: 150

Thank You
-Given: 14
-Receive: 17



« Reply #4 on: April 01, 2008, 09:20:49 09:20 »

It's quite easy, here is a small example for PIC18F4520:
Code:
__CONFIG(1, HSPLL & FCMEN & IESODIS);
__CONFIG(2, PWRTEN & BOREN & BORV27 & WDTEN & WDTPS256);
__CONFIG(3, CCP2RC1 & PBDIGITAL & LPT1DIS & MCLREN);
__CONFIG(4, XINSTDIS & STVREN & LVPDIS & DEBUGDIS);
__CONFIG(5, CP0 & CP1 & CP2 & CP3 & CPB);
__CONFIG(6, UNPROTECT);
__CONFIG(7, UNPROTECT);

For every configuration register you will find values in PIC header.
Logged

- Brain juice -
robban
Senior Member
****
Offline Offline

Posts: 265

Thank You
-Given: 34
-Receive: 38


Warrior


WWW
« Reply #5 on: April 02, 2008, 02:02:43 02:02 »

Hmm... Tavioman, do You know how to calculate the different fuse combinations into a single hex value?
Thanx
Logged

Code Warrior
tavioman
Active Member
***
Offline Offline

Posts: 150

Thank You
-Given: 14
-Receive: 17



« Reply #6 on: April 02, 2008, 07:19:46 07:19 »

Well... every configuration word has different settings.
As you can see in my example different settings are and-ed together.

Code:
__CONFIG(1, HSPLL & FCMEN & IESODIS);

This is equal to:

Code:
__CONFIG(1, 0xF6FF & 0xFFFF & 0x7FFF);

Wich is equal to:

Code:
__CONFIG(1, 0x76FF);

All values are defined in processor specific header.
Logged

- Brain juice -
Pages: [1]
Print
Jump to:  


DISCLAIMER
WE DONT HOST ANY ILLEGAL FILES ON THE SERVER
USE CONTACT US TO REPORT ILLEGAL FILES
ADMINISTRATORS CANNOT BE HELD RESPONSIBLE FOR USERS POSTS AND LINKS

... Copyright 2003-2999 Sonsivri.to ...
Powered by SMF 1.1.18 | SMF © 2006-2009, Simple Machines LLC | HarzeM Dilber MC