Clicks and pops are often caused by audio buffer sizes that are too small...unfortunately I can't remember exactly where they are set in logic but I'd bet that they're in the audio driver preferences somewhere...increase the buffer size bit by bit until the crackling disappears/stops.