Search found 9 matches

by ChrisBTW
Mon Sep 15, 2014 2:14 pm
Forum: C and ASM Programming
Topic: C for AVR Programming
Replies: 4
Views: 12392

Re: C for AVR Programming

I have the same issue. I have a 64bit machine with win7. The software will not run correctly on this machine but will run on a 32bit winXP. (Won't go anywhere near Win8!) I am having many issues with the tutorials as many of them will not work with the hardware provided. Trying to figure out why the...
by ChrisBTW
Mon Sep 15, 2014 2:07 pm
Forum: E-blocks
Topic: EBlock Schematic
Replies: 4
Views: 8327

Re: EBlock Schematic

Check out http://fritzing.org/projects/. This is for the Arduino world which uses Atmel mc's. This software is just great and brilliant if your hooking up to Arduino's, should be fine if you just want to produce stand alone PCB's.
by ChrisBTW
Fri Aug 22, 2014 11:26 am
Forum: E-blocks
Topic: C for AVR Dual 7 Seg Display
Replies: 3
Views: 4689

Re: C for AVR Dual 7 Seg Display

Found the solution to this. By default the JTAG fuse in enabled, which uses PORTC. In order to complete the exercise you need to disable the JTAG fuse. Not sure why MATRIX Multimedia would sell a learning package with so many errors/problems? :( Is there a thread on the forum for those who bought th...
by ChrisBTW
Tue Aug 19, 2014 3:40 pm
Forum: E-blocks
Topic: C for AVR Dual 7 Seg Display
Replies: 3
Views: 4689

Re: C for AVR Dual 7 Seg Display

OK, swapped the 7 segment module to ports A & B and it works fine! Any ideas why port C bits 2 & 3 wont work? Tried the LED module on port C and only bits 0, 1, 6, 7 light up, the other bits seem to be floating high? Tried PORTC = 0x00 to set them all low at the start but it still wont work. Any ide...
by ChrisBTW
Tue Aug 19, 2014 1:50 pm
Forum: E-blocks
Topic: C for AVR Dual 7 Seg Display
Replies: 3
Views: 4689

C for AVR Dual 7 Seg Display

Hi, I have the EB008001 dual 7 segment display E-Block connected to ports C/D with the EB019-00-2 AVR board. The sample code I have is given below. The problem is that segments 2 & 3 do not light up showing digits 3 & 4. I have used a scope to probe the enable pins (Q1, Q2, Q3, Q4) on the PCB and th...
by ChrisBTW
Tue Jul 22, 2014 1:20 pm
Forum: E-blocks
Topic: C for AVR Ex 1.4 Delay Routine
Replies: 5
Views: 5949

Re: C for AVR Ex 1.4 Delay Routine

Hi, OK I have figured out what it was.

Code: Select all

for (i=0; i<65000; i=i+1) 
		{
			asm("NOP");
		}    
I had the semi colon on the end of the for loop.

Just need to figure out why "NOP", fixes this delay code?

Many thanks,
Chris
by ChrisBTW
Tue Jul 22, 2014 12:30 pm
Forum: E-blocks
Topic: C for AVR Ex 1.4 Delay Routine
Replies: 5
Views: 5949

Re: C for AVR Ex 1.4 Delay Routine

Here is an attachment jpg of the OSC image for pin 14.

Chris
by ChrisBTW
Tue Jul 22, 2014 11:38 am
Forum: E-blocks
Topic: C for AVR Ex 1.4 Delay Routine
Replies: 5
Views: 5949

Re: C for AVR Ex 1.4 Delay Routine

Many thanks, I have tried this and to be honest the signal is more stable now but still not what I would expect. The signal on pin 14 does not appear to change with any number in the 'for' line. Sorry I can't figure out how to post images form the OSC? for (i=0; i<100; i=i+1); results in a signal ar...
by ChrisBTW
Tue Jul 22, 2014 10:41 am
Forum: E-blocks
Topic: C for AVR Ex 1.4 Delay Routine
Replies: 5
Views: 5949

C for AVR Ex 1.4 Delay Routine

I am trying to get the following code to work from the C for AVRs MATRIX course. /* Ex 1.4 Flash one LED with delay */ /* (c) Rob Miles August 2005 */ #include <AVR\io.h> void main(void) { unsigned int i; DDRD=0x01; while (1) { PORTD = 0x01; for (i=0; i<65000; i=i+1); PORTD = 0x00; for (i=0; i<65000...