I suppose you used a simple resistive VGA interface. Could we have the schematic, please?
I just tried building it with the current tools, but got an error:
C:\XMOS\vga_4bpp_320x240>xmake
xcc -O2 -g -c c_vga_refresh.c
xcc -O2 -g -c vga_refresh.S
xcc -O2 -g -c xc1.xc
xcc -O2 -g -c xc1_c.c
xc1_c.c: In function 'arand':
xc1_c.c:24: warning: implicit declaration of function 'rand'
xcc -O2 -g -c vgagen.xc
vgagen.xc:66: error: function network needs type
xmake: *** [vgagen.o] Error 1
It's probably something trivial.
XSMB-L1 Works !
-
- XCore Expert
- Posts: 546
- Joined: Thu Dec 10, 2009 10:41 pm
- Location: St. Leonards-on-Sea, E. Sussex, UK.
-
- Respected Member
- Posts: 259
- Joined: Thu Sep 16, 2010 9:15 am
I'll post a circuit as soon as I am home.
This was compiled with the old tools. It has to be refactored for newer versions:
you have to change the declaration from the old type to the new one:
that should do it... (ports are hardwired, I know old technique!).
Edit: I'll post an updated version, this was only an example.
This was compiled with the old tools. It has to be refactored for newer versions:
you have to change the declaration from the old type to the new one:
Code: Select all
int main( void )
{
chan draw_channel;
par
{
on stdcore[0] : c_vga_refresh();
on stdcore[0] : xc0_draw(draw_channel);
on stdcore[1] : xc1_control(draw_channel);
}
return 0;
}
Edit: I'll post an updated version, this was only an example.
-
- Respected Member
- Posts: 259
- Joined: Thu Sep 16, 2010 9:15 am
The board is my own design. I used the datasheets and available circuits. I have several uses in mind, one of them is a portable logic analyzer. I don't want to have to use a PC every time I need to measure something...
-
- Respected Member
- Posts: 259
- Joined: Thu Sep 16, 2010 9:15 am
Here is the simple dac circuit I used, and a buffered version I'd recommend. These DACs can be connected to the XC-1
You do not have the required permissions to view the files attached to this post.
-
- Respected Member
- Posts: 259
- Joined: Thu Sep 16, 2010 9:15 am
I think I smoked the PLL :(. I applied 3.3V to it :(, the xrun utility says that XCore 0 is not enabled :(. Clock is stable at 25 MHz, TRST sends 2 40 us pulses... 1V looks good and 3.3 too... I probably should check sequencing, I think it should work.. :(. I'll build a second board.
Edit: *** The schematic (and board) have the 4R7 resistor connected from PLL_AVDD to +3V3 that is a mistake. It should be to +1V0, as 3.3 V would most probably destroy the PLL, read above please.
Edit: *** The schematic (and board) have the 4R7 resistor connected from PLL_AVDD to +3V3 that is a mistake. It should be to +1V0, as 3.3 V would most probably destroy the PLL, read above please.