Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 07:09 02 Aug 2025 Privacy Policy
Jump to

Notice. New forum software under development. It's going to miss a few functions and look a bit ugly for a while, but I'm working on it full time now as the old forum was too unstable. Couple days, all good. If you notice any issues, please contact me.

Forum Index : Microcontroller and PC projects : Micromite interrupt composite video??

     Page 2 of 2    
Author Message
halldave

Senior Member

Joined: 04/05/2014
Location: Australia
Posts: 121
Posted: 05:16pm 28 May 2014
Copy link to clipboard 
Print this post

Just looking at the MicroChip Direct, thought I try out their free prototype programming. I clicked one of the pretty pictures on the right hand side.

They require a 4 digit Microchip MPLABŪ generated checksum, whereas the firmware readme file only has a MPLAB X checksum which is 8 characters

Is there anyway to convert these, do I drop the first or last 4 or just not worry about it, wait and then program myself

regards

David
 
Zonker

Guru

Joined: 18/08/2012
Location: United States
Posts: 767
Posted: 06:01pm 28 May 2014
Copy link to clipboard 
Print this post

Yikes...

I don't want to seem like a bitch here... But, is there a way to add a simple sound out to create the ASCII "bell" sound...? might be nice...
 
Grogster

Admin Group

Joined: 31/12/2012
Location: New Zealand
Posts: 9610
Posted: 06:33pm 28 May 2014
Copy link to clipboard 
Print this post

Programming the PIC32 needs a PICkit3 or clone, and the MPLAB X IDE. Part of the MPLAB install, will be an application called MPLAB IPE, which is really all you need if all you want to do, is program the chips. This is normally setup with a seperate icon on your desktop. I just deleted the icons for the other bits of MPLAB I was never planning to use.

Then you just load the HEX file, connect to the device, and away you go.

MPLAB X is free, and I don't recall needing any key or checksum etc, to get it installed and working.
Smoke makes things work. When the smoke gets out, it stops!
 
halldave

Senior Member

Joined: 04/05/2014
Location: Australia
Posts: 121
Posted: 06:46pm 28 May 2014
Copy link to clipboard 
Print this post

Yep I have pickit3, however I was trying to take up the free programming offer, I have mplabx installed on my mac and have used it to prog the micromite chips

I will order blanks, thanks anyway

David
 
Gizmo

Admin Group

Joined: 05/06/2004
Location: Australia
Posts: 5119
Posted: 07:00pm 28 May 2014
Copy link to clipboard 
Print this post

Geoff big thumbs up for the upcoming terminal project.

I used to fix Wyse terminals back in the 90's, and collected a few over the years, all gone now. The terminal will be a handy and fun little device, and I'm sure I have an old VGA LCD monitor somewhere I could cram it into.

Glenn
The best time to plant a tree was twenty years ago, the second best time is right now.
JAQ
 
MicroBlocks

Guru

Joined: 12/05/2012
Location: Thailand
Posts: 2209
Posted: 07:43pm 28 May 2014
Copy link to clipboard 
Print this post

I have an order of 50 pieces DIP 32MX250F128B-I/SP 50Mhz and a few SOIC on the way (expected delivery this Monday).

I will have them for sale from that moment for 6US$, shipping is 2US$ in padded envelope takes about 10 days.


Microblocks. Build with logic.
 
psergiu

Regular Member

Joined: 09/02/2013
Location: United States
Posts: 83
Posted: 07:55pm 28 May 2014
Copy link to clipboard 
Print this post

  Zonker said  I don't want to seem like a bitch here... But, is there a way to add a simple sound out to create the ASCII "bell" sound...? might be nice...


Also, some more additions, if possible:

- I know that ESC[1m ( VT100 bright/bold ) and ESC[2m ( VT100 dim ) cannot be added - but can they be mapped to Reverse & Underline too ? If you use this board to connect to a UNIX machine, this will make reading the man pages easier using the default VT100 termcap file.

- ESC[5m - VT100 Blink - flash that character on/off (or normal/reverse video, XOR the char position with a rectangle the size of the font cell).

- Custom escape char to report current graphical resolution

- If enough RAM is available - scroll back buffer (more on lower resolutions) - Scroll with Shift-PgUp / Shift-PgDn, terminal snaps back to current position if any char is received - like in the Linux console.

And a Question: Is there enough flash available to add the alternate font tables ? ESC( and ESC)

Thanks.
 
BobD

Guru

Joined: 07/12/2011
Location: Australia
Posts: 935
Posted: 08:41pm 28 May 2014
Copy link to clipboard 
Print this post

  halldave said   Wow, Part 2, still hasn't hit the streets

I bought the June issue of Silicon Chip this afternoon from the local newsagent.Edited by BobD 2014-05-30
 
halldave

Senior Member

Joined: 04/05/2014
Location: Australia
Posts: 121
Posted: 08:43pm 28 May 2014
Copy link to clipboard 
Print this post

i off to do a drive past a few newsagents

Thanks Bob
 
Grogster

Admin Group

Joined: 31/12/2012
Location: New Zealand
Posts: 9610
Posted: 08:44pm 28 May 2014
Copy link to clipboard 
Print this post

Yep, me too, and I am in New Zealand. I get mine from Jaycar, who always seem to be the first to have SC magazine over here.
Smoke makes things work. When the smoke gets out, it stops!
 
TassyJim

Guru

Joined: 07/08/2011
Location: Australia
Posts: 6283
Posted: 10:05pm 28 May 2014
Copy link to clipboard 
Print this post

Mine arrive in the post yesterday.
It was 3 weeks later than NZ last month!

Every dog has his day...

Jim
VK7JH
MMedit
 
Geoffg

Guru

Joined: 06/06/2011
Location: Australia
Posts: 3292
Posted: 11:55pm 28 May 2014
Copy link to clipboard 
Print this post

  Zonker said  I don't want to seem like a bitch here... But, is there a way to add a simple sound out to create the ASCII "bell" sound...? might be nice...

No sound, but I was thinking of making the screen flash white. I still have not figured out how to do that though.

  psergiu said  I know that ESC[1m ( VT100 bright/bold ) and ESC[2m ( VT100 dim ) cannot be added - but can they be mapped to Reverse & Underline too ? If you use this board to connect to a UNIX machine, this will make reading the man pages easier using the default VT100 termcap file.

Great idea thanks, it is on my todo list.

  psergiu said  ESC[5m - VT100 Blink - flash that character on/off (or normal/reverse video, XOR the char position with a rectangle the size of the font cell).

No, this is not possible because all chars are converted to bitmaps for display and the firmware would not be able to track which pixels are supposed to be flashing (not enough RAM).

  psergiu said  Custom escape char to report current graphical resolution

Doable. I will add it to the todo list.

  psergiu said  If enough RAM is available - scroll back buffer (more on lower resolutions) - Scroll with Shift-PgUp / Shift-PgDn, terminal snaps back to current position if any char is received - like in the Linux console.

That could be done but would be very hard, I will have to think about that one.

  psergiu said  Is there enough flash available to add the alternate font tables ? ESC( and ESC)

Yes, plenty of flash. The problem is getting the fonts in a format that I could use in the source code (ie, C). Does anyone have them in a non image format?

GeoffEdited by Geoffg 2014-05-30
Geoff Graham - http://geoffg.net
 
MicroBlocks

Guru

Joined: 12/05/2012
Location: Thailand
Posts: 2209
Posted: 12:27am 29 May 2014
Copy link to clipboard 
Print this post

If there is enough flash available would supporting an SD card be possible.
You would then be able to have a basic program on the SD and XMODEM (or just a stream ) it to/from the uMite. Making a copy of a program would then not need a PC.
That would be very useful.

Other future uses might then be possible like having a simple logger that writes all incoming data to a file. Simple data loggers are popular and would enable lots of projects to collect data that can be analyzed on a pc.

Edited by TZAdvantage 2014-05-30
Microblocks. Build with logic.
 
Grogster

Admin Group

Joined: 31/12/2012
Location: New Zealand
Posts: 9610
Posted: 03:11am 29 May 2014
Copy link to clipboard 
Print this post

Interesting idea, TZA. I also agree that basic logging is something many people want in a terminal, so would be a plus.

Although, this is getting close-ish to what the monochrome MaxiMite is, albeit without the built-in MMBasic.

Adding filesystem support to the 250 might want to gobble-up more flash then the chip has available, but I suppose if you kept it simple(pre-defined filenames, root-access only, FAT16 only, no folders etc), perhaps it could be done.

Maybe the terminal could introduce some new settings in the menu, to take advantage of the likes of an external RTC like the MicroMite already does, and perhaps just re-directing the terminal output as plain text(without any VT100 codes), which could then be fed to the likes of an optional OpenLog module?

What's your take on TZA's idea, Mr. Graham?Edited by Grogster 2014-05-30
Smoke makes things work. When the smoke gets out, it stops!
 
psergiu

Regular Member

Joined: 09/02/2013
Location: United States
Posts: 83
Posted: 05:16am 29 May 2014
Copy link to clipboard 
Print this post

  Geoffg said  
  Zonker said  I don't want to seem like a bitch here... But, is there a way to add a simple sound out to create the ASCII "bell" sound...? might be nice...

No sound, but I was thinking of making the screen flash white. I still have not figured out how to do that though.

1) For 10-20 screen refresh cycles, inverse the whole output. Might not be possible as you are using SPI/DMA to send out the video stream and i don't know if you can trick-it to perform the inversing on the fly.

2) as the BEL signal is supposed to stop console output while the sound is played, just XOR all video RAM, wait a bit (.2 sec) then XOR video RAM back

  Geoffg said  
  psergiu said  If enough RAM is available - scroll back buffer (more on lower resolutions) - Scroll with Shift-PgUp / Shift-PgDn, terminal snaps back to current position if any char is received - like in the Linux console.

That could be done but would be very hard, I will have to think about that one.


I have skimmed a bit the source code and it looks like the video RAM is a contiguous memory area - you will have to first allocate RAM for everything else (serial buffer) then all the rest for the framebuffer. You have to use VideoBuf just for the "writing/reading to/from video ram" part (except ScrollUp) and fit VideoBuf at the bottom of the allocated memory chunk. This way, all the memory above VideoBuf becomes the scroll-back buffer. I think it will be just a couple of lines in VGA but might be 2-3 whole screens on Composite output.

ScrollUp() should use the full framebuffer zone (in order to move old data off-screen into the scroll-back buffer)
Don't know about ScrollDown.

Then, in the video display interrupt you subtract a value from VPtr so you can display a "scrolled up" image, that value being increased/decreased in one char height increment (while still between the framebuffer limits) in the main loop with Shift+PgUp / Shift+PgDn.

In VideoPutc you reset that value to 0 so the display "snaps back down" every time something new appears on the screen.

  Geoffg said  
  psergiu said  Is there enough flash available to add the alternate font tables ? ESC( and ESC)

Yes, plenty of flash. The problem is getting the fonts in a format that I could use in the source code (ie, C). Does anyone have them in a non image format?

Geoff

If we could find them, they could be converted.
Anyone in here still has an original VT100-compatible terminal ? Can you please check how are the alternate font pages displayed in double-height and double-width modes ? Just pixel-doubling ?
Thanks.
 
JohnS
Guru

Joined: 18/11/2011
Location: United Kingdom
Posts: 4044
Posted: 12:32am 30 May 2014
Copy link to clipboard 
Print this post

I'm doubtful RAM can be spared for PageUp/Dn but much of the rest sounds good.

John
 
     Page 2 of 2    
Print this page


To reply to this topic, you need to log in.

The Back Shed's forum code is written, and hosted, in Australia.
© JAQ Software 2025