CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to CCS Technical Support

Search found 6 matches
CCS Forum Index
Author Message
  Topic: USB on 18F46J50
guenter

Replies: 2
Views: 5999

PostForum: General CCS C Discussion   Posted: Sun Nov 06, 2011 3:52 pm   Subject: USB on 18F46J50
Hello I got it!

#include <18F46J50.h>
#fuses NOWDT
#FUSES HSPLL
#fuses PLL2
#fuses NOCPUDIV
#use delay(clock=48MHz)

#define PIN_USB_SENSE PIN_C6
#define HW_INIT() ...
  Topic: USB on 18F46J50
guenter

Replies: 2
Views: 5999

PostForum: General CCS C Discussion   Posted: Sun Nov 06, 2011 2:38 pm   Subject: USB on 18F46J50
Hello Forum,

i want to setup an 18F46J50 for USB. The external crystal is 8 MHz. The PC shows only an unknown Device.

#include <18F46J50.h>
#fuses NOWDT
#FUSES HSPLL
#fuses PLL2
#fus ...
  Topic: Touch with 18F46J50
guenter

Replies: 5
Views: 7284

PostForum: General CCS C Discussion   Posted: Thu Jun 02, 2011 1:32 pm   Subject: Touch with 18F46J50
Aaarghh,

i think i found an bug in CCS:

#use TOUCHPAD(THRESHOLD=6, SCANTIME=32, PIN_B2='5', PIN_B3='6')

is not working, but this:

#use TOUCHPAD(RANGE=18, THRESHOLD=6, SCANTIME= ...
  Topic: Touch with 18F46J50
guenter

Replies: 5
Views: 7284

PostForum: General CCS C Discussion   Posted: Thu Jun 02, 2011 12:35 pm   Subject: Touch with 18F46J50
#include <18F46J50.h>
#fuses INTRC_IO,NOWDT
#use delay(clock=8000000)
#use TOUCHPAD(THRESHOLD=6, PIN_A0='5')

void main()
{
set_tris_d(0b11111111);
...
  Topic: Touch with 18F46J50
guenter

Replies: 5
Views: 7284

PostForum: General CCS C Discussion   Posted: Thu Jun 02, 2011 12:40 am   Subject: Touch with 18F46J50
Hello,

the LED on D2 is binking

output_toggle(PIN_D2);
delay_ms(500);

the LED on D3 is never on.
  Topic: Touch with 18F46J50
guenter

Replies: 5
Views: 7284

PostForum: General CCS C Discussion   Posted: Wed Jun 01, 2011 2:55 pm   Subject: Touch with 18F46J50
Hello Forum,

I wrote my first code:


#include <18F46J50.h>
#fuses INTRC_IO,NOWDT
#use delay(clock=8000000)
//#use fast_io(b)
#use TOUCHPAD(THRESHOLD=6, PIN_A0='5' ...
 
Page 1 of 1
All times are GMT - 6 Hours
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group