Delivered-To: jake@vapourforge.com Received: from pch.mit.edu (PCH.MIT.EDU [18.7.21.90]) by mail.vapourforge.com (Postfix) with ESMTP id 0DEC4CFC0 for ; Sun, 18 Jul 2010 07:37:28 +1000 (EST) Received: from pch.mit.edu (pch.mit.edu [127.0.0.1]) by pch.mit.edu (8.13.6/8.12.8) with ESMTP id o6HLWlCj009032; Sat, 17 Jul 2010 17:32:50 -0400 Received: from mailhub-dmz-4.mit.edu (MAILHUB-DMZ-4.MIT.EDU [18.7.62.38]) by pch.mit.edu (8.13.6/8.12.8) with ESMTP id o6HLWj92009019 for ; Sat, 17 Jul 2010 17:32:45 -0400 Received: from dmz-mailsec-scanner-2.mit.edu (DMZ-MAILSEC-SCANNER-2.MIT.EDU [18.9.25.13]) by mailhub-dmz-4.mit.edu (8.13.8/8.9.2) with ESMTP id o6HLWjAN015622 for ; Sat, 17 Jul 2010 17:32:45 -0400 X-AuditID: 1209190d-b7c19ae0000009ea-98-4c42217ca0f1 Received: from smtp-out12.han.skanova.net (smtp-out12.han.skanova.net [195.67.226.212]) by dmz-mailsec-scanner-2.mit.edu (Symantec Brightmail Gateway) with SMTP id 3D.1B.02538.D71224C4; Sat, 17 Jul 2010 17:32:45 -0400 (EDT) Received: from [192.168.1.38] (81.232.163.33) by smtp-out12.han.skanova.net (8.5.114) (authenticated as u12103129) id 4BC6CFA7019928A0 for piclist@mit.edu; Sat, 17 Jul 2010 23:32:43 +0200 Message-ID: <4C42215E.1060908@telia.com> Date: Sat, 17 Jul 2010 23:32:14 +0200 From: Jan-Erik Soderholm User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.9.1.10) Gecko/20100512 Thunderbird/3.0.5 MIME-Version: 1.0 To: "Microcontroller discussion list - Public." Subject: Re: [PIC] Problem getting PIC18 to work under C18 (was [PIC] Setting out PIC18 Assembly code) References: <4C421C24.8060209@theiet.org> In-Reply-To: <4C421C24.8060209@theiet.org> X-Brightmail-Tracker: AAAAARUsJHI= X-Topics: [PIC] X-BeenThere: piclist@mit.edu X-Mailman-Version: 2.1.6 Precedence: list Reply-To: "Microcontroller discussion list - Public." List-Id: "Microcontroller discussion list - Public." List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: piclist-bounces@mit.edu Errors-To: piclist-bounces@mit.edu That is probably *way* too little code to get something usable running. There is no setup of the processor, ports, analog port functions and so on. On avarage there usualy will be 10-20 commands where some registers are setup/configured to match what you want. And then there are the CONFIG settings also. You say "...I'm familiar with C. I've not used PICs before..." Right, your familarity with C will not help you a single bit. You will never get anything to run correctly, no matter if it's in C or anything else, if you do not know how PIC is working. I'd guess that the simplest solution would be to get someone to put the code together. I do not know what the applicaation is supposed to do, but judging from your circuit, it can't be that complicated. Someone who has what you are lacking (knowledge of PICs) would probably put it together in more or less notime. Your circuit as such is probably OK (it is lacking decoupling capacitors, though).