Search found 35 matches

by econnections
Mon Apr 20, 2009 12:47 am
Forum: C and ASM Programming
Topic: C for PICmicro V2.0
Replies: 1
Views: 3594

C for PICmicro V2.0

I have the above product which contains C2C-plus C-compiler version 4.00.7e. The accompaning documentation says you should 'Select source code highlighting. This makes it easier to identify the various types of information my program contains. You can turn this on by selected the colors item from th...
by econnections
Tue Mar 24, 2009 3:38 am
Forum: C and ASM Programming
Topic: Include and List Commands?
Replies: 1
Views: 3441

Include and List Commands?

In Assembly for PICMicro v2 the INCLUDE command is extensively used to save having to keep adding a list of the registry file names. In v4 this has been omitted. Q1 Is there a reason for not using it in v4? I note the P16F88.inc file is not inclused on the disk. If I can use INCLUDE where can I get ...
by econnections
Fri Mar 13, 2009 4:30 am
Forum: C and ASM Programming
Topic: Using RS232 with AUSART on 16F88
Replies: 7
Views: 8824

Re: Using RS232 with AUSART on 16F88

I used an emitter follow built with BC108 to buffer the output from the MAX232. The voltage at RB2/J10 now swings between 0.2-4.1v which is enough to drive the PIC. The test cicuit allowed be to type keys on the PC using hyperterminal, send the keycodes through the MAX232 to the UART and display the...
by econnections
Thu Mar 12, 2009 4:57 pm
Forum: C and ASM Programming
Topic: Using RS232 with AUSART on 16F88
Replies: 7
Views: 8824

Re: Using RS232 with AUSART on 16F88

Very useful information, thank you. I will try attaching a pull up resister between RB2/J10 and Vdd and monitor the effect and try adding an emitter follower on the output from the MAX232. I like your suggestion of using a 16F877a. It hadn't occured to me that there was no loading on port C. I will ...
by econnections
Thu Mar 12, 2009 3:37 pm
Forum: C and ASM Programming
Topic: Using RS232 with AUSART on 16F88
Replies: 7
Views: 8824

Re: Using RS232 with AUSART on 16F88

Thank you for the lead. I have spent the last couple of days studying the datasheet on UART reception; there isn't much on Google but I did find one useful lead. I have written the receiption routine which I am convinced should work but appear not to. During testing I have made the following observa...
by econnections
Mon Mar 09, 2009 1:25 pm
Forum: C and ASM Programming
Topic: Using RS232 with AUSART on 16F88
Replies: 7
Views: 8824

Using RS232 with AUSART on 16F88

Hello, Ref: Tutorial 45 in 'Assembly for PICMicro v4', v3 Development Board, 16F88 (19.6608Mhz) I been working with this tutorial and used the two routines to get the letter 'i' to appear on pin 11, RB5. A loop and delay have been added to the 'i' appears every 500ms. When the MAX232 chip arrives I ...
by econnections
Mon Mar 02, 2009 9:44 am
Forum: C and ASM Programming
Topic: Learning about ADC
Replies: 10
Views: 9349

Re: Learning about ADC

Hi Ben, That seems to work. Thank you for sorting the problem quickly. I attached an LM35 digital thyrister to one of the channels and observed a reading of the LCD of around 240. The LM25 produces and output of 0.22volts at 22 degree C and changes by 10mV/C. Is it possible to change the reference v...
by econnections
Fri Feb 27, 2009 11:55 am
Forum: C and ASM Programming
Topic: Learning about ADC
Replies: 10
Views: 9349

Re: Learning about ADC

Hi Ben, The problem is the tutorial doesn't mention that I will be using RV3 to control the voltage or to set J14.1 to analogue and it should do so if that's required. Anyway I have made the changes and nothing appears to happen. I only see the following on the RHS of the LCD: 0000 _00000. I also no...
by econnections
Fri Feb 27, 2009 3:41 am
Forum: C and ASM Programming
Topic: Learning about ADC
Replies: 10
Views: 9349

Re: Learning about ADC

So, at great cost I have upgraded to Assembly for PICMicro v4 professional and the v3 development board along with Flowcode and some other goodies. I tested the board and software set-up by loading tutorial 29 and checking that a message was sent to the LCD - it was. I loaded up tutorial 43 so I cou...
by econnections
Thu Feb 26, 2009 3:39 am
Forum: Other products
Topic: Learning about Stepper Motors
Replies: 2
Views: 18713

Learning about Stepper Motors

Hi, Do you have any products that teach people about the stepper motor and how to use then to build xy and xyz linear positioning systems. It would be great if this was extended to include cnc and there was a kit that would allow a user to mount and position a dremel drill for drilling pcb's. This s...
by econnections
Wed Feb 25, 2009 12:50 pm
Forum: C and ASM Programming
Topic: Help with HD44780-based Character-LCD
Replies: 3
Views: 5194

Re: Help with HD44780-based Character-LCD

Hi Ben, That clarifies things for me. I didn't realise you were sending the same command five times. If I want to use the LCD to show temperature or any other value that needs to be written to the same character locations on the device what command do I use? e.g. I want to write the temperature valu...
by econnections
Thu Feb 19, 2009 1:43 pm
Forum: C and ASM Programming
Topic: Learning about ADC
Replies: 10
Views: 9349

Re: Learning about ADC

Hi Ben, I have been in touch with sales and will upgrade to Assembly for PICMicro v4 tommorrow when I have the license details. I have tried reading the datasheets on ADC but they only particially helped. There's nothing quite like getting your teeth into a good training tutorial where you have a wo...
by econnections
Thu Feb 19, 2009 4:02 am
Forum: C and ASM Programming
Topic: Learning about ADC
Replies: 10
Views: 9349

Learning about ADC

I have v2 Assembly for PICMicro and v2 development board. I would like to learn to use an ADC to monitor a thermister and send the data to the LCD. There are no tutorials for this in v2 so can I upgrade to Assembly for PICMicro v4 and at what cost? Can I use the 16F88 with the v2 development board? ...
by econnections
Wed Feb 18, 2009 2:20 pm
Forum: C and ASM Programming
Topic: Help with HD44780-based Character-LCD
Replies: 3
Views: 5194

Help with HD44780-based Character-LCD

Reference: Tutorial 29, Assembly for PICMicro v2. I'm trying to undestand the initialiastion codes you have configured for the LCD. I started out by reading several datasheets and Googling for help but when I write my initialisation routine it doesn't work and some of your coding does not appear to ...
by econnections
Mon Feb 16, 2009 1:20 pm
Forum: C and ASM Programming
Topic: v2 Development Board Documentation
Replies: 1
Views: 3551

v2 Development Board Documentation

Is there a copy of the pdf available you can attach to this thread or a link?

Many Thanks
by econnections
Sat Feb 14, 2009 1:27 pm
Forum: C and ASM Programming
Topic: RB Port Change Interrupt - 16F84a
Replies: 3
Views: 6592

Re: RB Port Change Interrupt - 16F84a

Ben, I made changes to the program so that an action is only performed when the switch is pressed. It is included here for help to anyone learing about Port Change Interrupts. ; The following line embeds configuration data into the PICmicro __CONFIG H'3FF9' ; XT mode ; __CONFIG _CP_OFF & _XT_OSC & _...
by econnections
Tue Feb 10, 2009 2:44 pm
Forum: C and ASM Programming
Topic: RB Port Change Interrupt - 16F84a
Replies: 3
Views: 6592

Re: RB Port Change Interrupt - 16F84a

Hi Ben,

The key word here is 'change'. I had wronly assumed the interrupt triggered on a rising edge when infact as you stated it triggers on both rising amd falling edge. Many thanks again.
by econnections
Tue Feb 10, 2009 10:29 am
Forum: C and ASM Programming
Topic: RB Port Change Interrupt - 16F84a
Replies: 3
Views: 6592

RB Port Change Interrupt - 16F84a

Hi, The simple code below is intended to capture which button is pressed between RB7-RB4 that initiated an interrupt. During the interrupt the value of portb is saved to TEMP and the upper and lower nibble swapped of TEMP swapped. TEMP is then sent to porta for viewing. When any of the switches for ...
by econnections
Tue Feb 10, 2009 2:01 am
Forum: C and ASM Programming
Topic: EEPROM Read/Write Problem 16F84a
Replies: 3
Views: 6342

Re: EEPROM Read/Write Problem 16F84a

Hi Ben, After unticking the options you mentioned my 'read eeprom' program appears to work, so many thanks for that. I noticed that unticking these boxes are not saved after clicking OK so each time I run the program I have to go back and reset these options in PPPv3. Q1) is this behaviour correct a...
by econnections
Mon Feb 09, 2009 2:10 am
Forum: C and ASM Programming
Topic: EEPROM Read/Write Problem 16F84a
Replies: 3
Views: 6342

EEPROM Read/Write Problem 16F84a

I have carefull read the data sheet for the 16F84a on reading/writing to the EEPROM memory and it appears straight forward. I also read tutorial 33 in ASM for PICMicro v2 and ran tutorial 34 on my v2 development board. I iniated an alarm in zone 3 then read the alarm activation time saved in the EEP...
by econnections
Sat Feb 07, 2009 12:16 am
Forum: C and ASM Programming
Topic: RB0/INT 16F84a Programing Problem
Replies: 2
Views: 4832

Re: RB0/INT 16F84a Programing Problem

Thanks for the help. I finally got to the bottom of the problem. I'm using the v2 Development Board and I noticed that sometimes the RB0 interrupt worked in my programs and other times it didn't. However, most of the time it didn't work. With reference to the voltage levels I've looked up the specif...
by econnections
Wed Feb 04, 2009 11:36 am
Forum: C and ASM Programming
Topic: Help with using INCFSZ (possible bug?)
Replies: 3
Views: 5630

Re: Help with using INCFSZ (possible bug?)

Steve, I added the loop to the end of the program as you suggested and that appears to have resolved the problem. I had assumed that the command END did the job but maybe that is for use by the assembler. Anyway, problem resolved and thank you for your help. Someone suggested that I use an 18 series...
by econnections
Tue Feb 03, 2009 10:05 pm
Forum: C and ASM Programming
Topic: Help with using INCFSZ (possible bug?)
Replies: 3
Views: 5630

Help with using INCFSZ (possible bug?)

PIC: 16F84a Assembler: Matrix Multimedia ASM - IDE I've been trying to use the INFSZ command in a loop but find it causes the PIC to demonistrate unusual behaviour, particularly when values are sent to PORTB. The program will work when run in RC mode at around 100hz but behaves oddly XT mode. The pr...
by econnections
Thu Jan 29, 2009 10:37 pm
Forum: C and ASM Programming
Topic: VLAB v2.0 Bug?
Replies: 7
Views: 6845

Re: VLAB v2.1 Resolved Bug

Ben, I installed version v2.1 and it allowed me to load the w register with FF. I then went back to v2.0 and it displayed 7E after loading w with FF. Clearly, there is a fault with the older version. It might be useful to setup an area in the forum for know bugs in both hardware and software so peop...
by econnections
Wed Jan 28, 2009 11:34 am
Forum: E-blocks
Topic: Test and Repair of V2 Development Board
Replies: 1
Views: 2592

Test and Repair of V2 Development Board

Hello, Is there a test and repair service for the v2 Development Board. I asked because I am having problems getting some of the programs I write in in assembly code to work when I try to run the PIC in XT mode. Oddly, the tutorials run but if I write a simple loop using INCFSZ the program work in V...