Skip to main content

Messages

This section allows you to view all Messages made by this member. Note that you can only see Messages made in areas you currently have access to.

Messages - cmdrk33n

1
General discussion / Re: Need your help for the PIC18F25K50
Hello there, a short update:


I've tried windows and installed the 3.4.3 upgrade for the C18 compiler (only available for win)
and it is working with the PIC18F25K50 (but the dot is yellow and not green, dunno what this means)
2
General discussion / Need your help for the PIC18F25K50
Hello guys,

I've received a few PIC18F25K50 samples and wanted to play around with them. I must say, i'm bloody new to PIC MCU's.

I'm running archlinux and installed the following software:

- MPLAB X 1.4
- XC8 1.1.0
- C18 3.4.0

So, everything is running fine till here (except some path problems with this "plib", but i have solved them already), But the trouble starts when it i want to start a project for the PIC18F25K50. I can't choose the C18 compiler (i believe my version doesn't support it yet). But i can choose the XC8. It creates the project and i can use the needed headers.

Now things went strange:

there is a common library and a huge set of headers for i2c,spi,pwn and so on that is namend "plib". But it seems that it also doesn't support my chip. the lib for it is missing and i can't even set the essential config (FOSC etc.) because it wasn't found.

i tested all with the PIC18F2550 and everything is working there, so my basic setup should be ok.

Does anyone of you has experiences with that chip?
and more general: is MPLAB and the compilers from microchip the way i should go or is there any secret jedipath for PIC developement?

Oh, and there is a new version of the C18 (3.4.3) but the upgrade is only available for windows :-/

Please throw every tiny tip in here, i'm sure i can need it ^^

thanks for your help :-)
3
Project development, ideas, and suggestions / Re: DTR signal for attiny's running avr-cdc
Hey there,

i need some help from you all :-)

i've started the howto series about avr-cdc and begun to make a seperate post for each chip variant (attiny45/85,attiny2313 and atmega8). There is currently only the attiny45/85 post finished.

Now my question for you: would it be nicer to put all the chips in one post or is it ok to have three different posts for each chip?

you can find all relatet posts here:

http://www.cmdrkeen.net/category/electr ... unleashed/
4
Project development, ideas, and suggestions / Re: DTR signal for attiny's running avr-cdc
Hello,

i'm back from vacationand here is the fix for setting the DTR sig on the attiny45/85 active low:

simply change

            PORTB = (PORTB&~(1<<UART_CFG_DTR))|((rq->wValue.word&1)<<UART_CFG_DTR);

to

            PORTB = (PORTB&~(1<<UART_CFG_DTR))|(!(rq->wValue.word&1)<<UART_CFG_DTR);

i have also decided to don't put work into the attiny2313, because you can simply use the 16 and 20 mhz version from the original firmware, this gives you cts, rts and dtr.
dtr is on pin5.

iam currently writing a detailed tutorial for using avr-cdc with several chips. yo can find all my veryfied .hex files on my blog and github repo in the next days (when my tut is also finished).
7
Project development, ideas, and suggestions / Re: DTR signal for attiny's running avr-cdc
Hello,

thank you very much for the feedback! :-D

@MickM: yes, this theme sucks for comments and defines, bit compared to the others, it's the niced. But far away from beautyfull of course.

sadly i didn't get your point with that image problem, because the actual code is text/html. or do you mean something else?
8
Project development, ideas, and suggestions / DTR signal for attiny's running avr-cdc
Hello,

I want to reuse my attiny85 running the avr-cdc firmware for my next DIY Arduino, but this time it would be nice to have the autoreset feature onboard (pressing reset for uploading sketches sucks sometimes). So i've started to hack the DTR signal into the avr-cdc firmware for the tiny chips. It's currently working for the tiny85. in the next few days, i will upload the missing bins for tiny45 and tiny2313...

I've also made a walkthrought for all the code changes i've made.

You can find everything on my blog:

http://www.cmdrkeen.net/2012/08/01/avr- ... -and-2313/ 

Have fun :)

oh, since iam the only person so far that have tested my code, it would be great to get some feedback if someone discovers a problem ;-)

------------------------- Edit -------------------------
You can find the tiny2313 code in my github repo, it provides you the DTR signal when you run this chip @12Mhz

https://github.com/tgoehlert/avr-cdc/tr ... 4/tiny2313

Since i don't have an attiny2313 laying around, i could'nt test it until now.


i've made a small demo for the modified tiny45/85 version:

http://www.youtube.com/watch?v=OvdGLPAbftc
10
General discussion / Re: Board Layout.. pew
Hi guys,

i have tried some of your tips, IMHO it looks waay better than the first one :)



Thank you all for your very usefull comments :)
12
General discussion / Re: Board Layout.. pew
oh, i missed that :D

thank you! :)

like i said, its the first time for me. but it is funny as hell, this reminds me of sim city ;)
13
General discussion / Re: Board Layout.. pew
"it realigns back on the new position." <-- maybe this is a little bit confusing..

when i want to place it when ctrl is pressed, it snaps back to the wrong alignment.
14
General discussion / Re: Board Layout.. pew
Hi Guys,

@vimark: i have tried this already, but when i have the component in position, it realigns back on the new position.

@markus: the smallest Trace i`m using is 0,3mm, i can`t get it thicker because of the LQFP pads (0,3 matches perfectly for them)
for the other ones i use 0.4mm and 0.6mm for VCC. I think i can make these 0.4mm a bit thicker.
15
General discussion / Re: Board Layout.. pew
Hi markus,

you are rigth, i have placed a few components and then started routing :-)
i tried to avoid traces on the bottom as much as i can.

The alignment is a strange problem atm. it seems that some components dont`t want to match the grid ö.Ö. But i will research that in the Eaglecad documentation.

Thank you very much :)

( ! ) Fatal error: Uncaught exception 'Elk_Exception' with message 'Please try again. If you come back to this error screen, report the error to an administrator.' in /var/www/dangerousprototypes/forum/sources/database/Db-mysql.class.php on line 696
( ! ) Elk_Exception: Please try again. If you come back to this error screen, report the error to an administrator. in /var/www/dangerousprototypes/forum/sources/database/Db-mysql.class.php on line 696
Call Stack
#TimeMemoryFunctionLocation
10.02132428280session_write_close ( )...(null):0
20.02192559880ElkArte\sources\subs\SessionHandler\DatabaseHandler->write( )...(null):0
30.02192560656Database_MySQL->query( ).../DatabaseHandler.php:119
40.07432699400Database_MySQL->error( ).../Db-mysql.class.php:273