forums.ps2dev.org Forum Index forums.ps2dev.org
Homebrew PS2, PSP & PS3 Development Discussions
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Question regarding alternate use of audio +remote jack

 
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Development
View previous topic :: View next topic  
Author Message
Fluff



Joined: 22 Apr 2005
Posts: 35

PostPosted: Sun Jun 22, 2008 12:33 am    Post subject: Question regarding alternate use of audio +remote jack Reply with quote

Recently i've been exploring the possibility of generating video output on PIC microprocessors for simple games like pong, which are, though simple, entirely possible, such as this breakout game here : http://www.acm.uiuc.edu/sigarch/projects/breakout/
It resulted in me wondering if a similar sort of project would be possible for the PSP, bearing in mind my knowledge of the psp hardware isn't all that great, and neither is my knowledge of writing software for the device, however a few friends of mine weho have written applications for the device before suggested i ask here.

Basically i would like to know the answer to a few questions regarding the psp's hardware, these are as such.
1) What is the comprative voltage range of the audio jack alone, for audio L/R? would it be able to provide a maximum of 1v?
2) I'm aware that the remote connector is capable of providing a constant 2.5v after reading through this thread : http://forums.ps2dev.org/viewtopic.php?p=18903 , but i'd like to know if the voltage to this connector can be modified via software, and if so, what sort of timing for voltage change would we be talking about?

Now bare with me here, i'm aware my lack of knowledge may have already set alarm bells ringing in the 'noob stamp' department, but i'd basically like to ask the blunt question of, just how feasable would it be to generate a video signal in software, either specifically for displaying a specific application or image, or converting data from the framebuffer to a composite video format, and outputting that video signal to a display via either the remote connector or over L or R audio line (leaving the second for mono audio).
Back to top
View user's profile Send private message
jas0nuk



Joined: 27 Apr 2006
Posts: 137

PostPosted: Sun Jun 22, 2008 12:46 am    Post subject: Reply with quote

Interesting... from a quick skim over dvemgr.prx reversed by Dark_AleX, it looks like it may be possible to write any kind of data (such as video) to one of the headphone channels, using the sceI2cMasterTransmit function.
In the case of dvemgr.prx it seems to be reading from/writing to device 0x42 which I assume is the Slim's remote socket, so I wonder what the equivalent IDs are for the headphone channels. Has anyone reversed audio.prx?
Of course, that PRX is from the Slim which has extra hardware to produce the video output, but maybe it could be done in hardware (i.e. capture framebuffer and convert it). :/
Back to top
View user's profile Send private message
Art



Joined: 09 Nov 2005
Posts: 647

PostPosted: Sun Jun 22, 2008 9:16 am    Post subject: Reply with quote

I think it would be possible using the same method used in the tutorial written
by the author of pic pong and pic tetris.. I assume that is where you're getting
the idea from.
Surely with a few capacitors for buffering, you could produce an audio signal
to achieve a composite video signal without any resistor ladder.
_________________
If not actually, then potentially.
Back to top
View user's profile Send private message
jean



Joined: 05 Jan 2008
Posts: 489

PostPosted: Sun Jun 22, 2008 8:40 pm    Post subject: Reply with quote

I tried that video PIC thing, and it's very funny....remember that a PIC at 4Mhz produces 1000000 instructions per second....is audio dedicated circuitry capable of doing this?? (...or did i misunderstood the topic?)
Back to top
View user's profile Send private message
adrahil



Joined: 16 Mar 2006
Posts: 277

PostPosted: Sun Jun 22, 2008 9:54 pm    Post subject: Reply with quote

jas0nuk wrote:
Interesting... from a quick skim over dvemgr.prx reversed by Dark_AleX, it looks like it may be possible to write any kind of data (such as video) to one of the headphone channels, using the sceI2cMasterTransmit function.
In the case of dvemgr.prx it seems to be reading from/writing to device 0x42 which I assume is the Slim's remote socket, so I wonder what the equivalent IDs are for the headphone channels. Has anyone reversed audio.prx?
Of course, that PRX is from the Slim which has extra hardware to produce the video output, but maybe it could be done in hardware (i.e. capture framebuffer and convert it). :/


The slim video output is a curious thing... The video signal is digitally transmitted to two chips: Hibari and DVE, each of them having a distinct purpose. Hibari is the LCD *driver*, i-e it converts a digital signal into properly synced RGB for the LCD. DVE is the video output module, which converts the digital input into composite, RGB or component output.

To come back to the topic, the 0x42 I2C device is the DVE control and configuration channel. You cannot send it raw data, or anything of sort, through I2C; for that you have to use the *proper* channels, which are displaying and setting the display mode with display.prx functions and EDRAM.

The same holds for the audio controller, which is a chip the configuration of which can be controlled through I2C (That's how we can choose where we want the sound to come out from...)
Back to top
View user's profile Send private message
jas0nuk



Joined: 27 Apr 2006
Posts: 137

PostPosted: Sun Jun 22, 2008 11:17 pm    Post subject: Reply with quote

Aha, so, could we 1) emulate what DVE is doing in the slim without making everything run slowly and 2) put this data out through one of the audio channels?
Back to top
View user's profile Send private message
adrahil



Joined: 16 Mar 2006
Posts: 277

PostPosted: Sun Jun 22, 2008 11:23 pm    Post subject: Reply with quote

Quote:
1) emulate what DVE is doing in the slim without making everything run slowly

Hmm... the DVE is just a chip taking raw pixel data and converting to an appropriate output format.
Quote:
2) put this data out through one of the audio channels

But why would you want to do that?


The main issue with the two propositions is the bandwidth. Why is there a special IC to do the video output? Simply because the audio chip is probably too slow to output video at a decent framerate. I personally think it's a dead end project, but I'd love to be contradicted...

EDIT:
I looked at the page cited in the first post and they say the output has to be clocked at 12Mhz for a decent framerate. Although I don't know the exact bitrate and frequency limit of the PSP's chip, I highly doubt it's possible to do such a thing.
Back to top
View user's profile Send private message
jas0nuk



Joined: 27 Apr 2006
Posts: 137

PostPosted: Sun Jun 22, 2008 11:28 pm    Post subject: Reply with quote

Well, audio is easiest, since a headphone jack to RCA connector can be used, and the white (left) channel used as the video connector. But maybe it could be done through the remote control socket?
Back to top
View user's profile Send private message
adrahil



Joined: 16 Mar 2006
Posts: 277

PostPosted: Mon Jun 23, 2008 3:40 am    Post subject: Reply with quote

Still a bandwidth problem... Unless your TV supports 320x240 BW resolution...
Back to top
View user's profile Send private message
jas0nuk



Joined: 27 Apr 2006
Posts: 137

PostPosted: Mon Jun 23, 2008 4:07 am    Post subject: Reply with quote

Indeed xD But even a monochrome image at poor resolution would be a nice start
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Development All times are GMT + 10 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group